user accounts
This commit is contained in:
@@ -167,6 +167,12 @@ func (s *userService) AppLogin(user models.User) (models.TenantUserInfo, fiber.M
|
||||
}
|
||||
|
||||
func (s *userService) CreateUser(user models.User) (models.UserInfo, error) {
|
||||
// Without an authname and a console configid the account is created,
|
||||
// listed, and then refused at the login screen: `weblogin` matches
|
||||
// `WHERE authname = ? AND configid = ?` and never looks at the email
|
||||
// column. See PrepareNewAccount.
|
||||
user = PrepareNewAccount(user)
|
||||
|
||||
// Call repository to create user
|
||||
userid, err := s.repo.CreateUser(user)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user