Convert registration to async
This commit is contained in:
@ -63,11 +63,12 @@ final class User: Model {
|
||||
init() { }
|
||||
|
||||
/// Creates a new user.
|
||||
init(id: UUID? = nil, name: String, hash: String) {
|
||||
init(id: UUID? = nil, name: String, hash: String, email: String? = nil) {
|
||||
self.id = id
|
||||
self.name = name
|
||||
self.passwordHash = hash
|
||||
self.points = 0
|
||||
self.recoveryEmail = email
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user