feat: email verification flow (not 100% complete)
This commit is contained in:
1 parent
37647e60d9
commit
c929acd4ab
11 files changed
+126
-24
No files matched your search
+2
-1
@@ -22,13 +22,14 @@ func FromApi(
|
||||
email string,
|
||||
verificationCode string,
|
||||
) User {
|
||||
expiration := time.Now().Add(2 * time.Hour)
|
||||
return User{
|
||||
Username: username,
|
||||
Password: password,
|
||||
Email: email,
|
||||
IsVerified: false,
|
||||
VerificationCode: verificationCode,
|
||||
VerificationExpiration: time.Now().Add(2 * time.Hour),
|
||||
VerificationExpiration: expiration,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user