Add an API to reset the password

This commit is contained in:
Nikolai Rodionov 2024-05-22 11:39:08 +02:00
parent b533372b22
commit 66173f1936
Signed by: allanger
GPG Key ID: 0AA46A90E25592AD

View File

@ -51,7 +51,7 @@ func (svc *EmailSvc) SendVerification(ctx context.Context) error {
}
if val, ok := userns.Labels["email-verified"]; ok && val == "true" {
return errors.Error("email is already verified")
return errors.New("email is already verified")
}
number := encodeToString(6)