Skip to content

Commit 8b90671

Browse files
committed
feat: [#802] new errors
1 parent 1e992ba commit 8b90671

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/errors.rs

+5
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ pub enum ServiceError {
2222

2323
#[display("Email is required")] //405j
2424
EmailMissing,
25+
#[display("A verified email is required")] //405j
26+
VerifiedEmailMissing,
2527
#[display("Please enter a valid email address")] //405j
2628
EmailInvalid,
2729

@@ -60,6 +62,9 @@ pub enum ServiceError {
6062
#[display("Passwords don't match")]
6163
PasswordsDontMatch,
6264

65+
#[display("Couldn't send new password to the user")]
66+
FailedToSendResetPassword,
67+
6368
/// when the a username is already taken
6469
#[display("Username not available")]
6570
UsernameTaken,

0 commit comments

Comments
 (0)