mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-10-15 06:09:07 +02:00
feat: add ability to force email verification (#1837)
This commit is contained in:
@@ -308,3 +308,11 @@ func OidcPARRequired() *Error {
|
||||
func InvalidEmailVerificationToken() *Error {
|
||||
return New(CodeEmailVerificationTokenInvalid, http.StatusBadRequest, "Email verification token is invalid")
|
||||
}
|
||||
|
||||
func EmailVerificationRequired() *Error {
|
||||
return New(CodeEmailVerificationRequired, http.StatusForbidden, "You must verify your email address before you can access this service.")
|
||||
}
|
||||
|
||||
func EmailChangeNotStarted(cause error) *Error {
|
||||
return Wrap(cause, CodeEmailChangeNotStarted, http.StatusInternalServerError, "Your other changes were saved, but the email to confirm your new email address could not be sent")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user