Fixed sign up

This commit is contained in:
a-ill
2023-08-01 16:44:41 +03:00
parent 3cf3da2aaf
commit 6fc5aa1ee4
38 changed files with 37 additions and 36 deletions

View File

@@ -140,7 +140,6 @@ function register()
password = data["password"] |> Users.hash_password,
) |> save!
authenticate(user.id, GenieSession.session(params()))
assign_role(user, findone(Role, name = "free"))
confirmation_code = randstring('0':'9', 5)
user.confirmation_code = confirmation_code
save(user)