Convert registration to async

This commit is contained in:
Christoph Hagen
2022-10-12 14:34:43 +02:00
parent 8b89ebcccb
commit 7ef5da08d0
3 changed files with 30 additions and 21 deletions

View File

@ -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
}
}