mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-11 18:15:39 +00:00
feat: define interface for username registration"
This commit is contained in:
@@ -26,6 +26,15 @@ pub enum DBError {
|
||||
/// errors that are specific to a database implementation
|
||||
#[error("{0}")]
|
||||
DBError(#[source] BoxDynError),
|
||||
/// Username is taken
|
||||
#[error("Username is taken")]
|
||||
UsernameTaken,
|
||||
/// Email is taken
|
||||
#[error("Email is taken")]
|
||||
EmailTaken,
|
||||
/// Secret is taken
|
||||
#[error("Secret is taken")]
|
||||
SecretTaken,
|
||||
}
|
||||
|
||||
/// Convenience type alias for grouping driver-specific errors
|
||||
|
||||
Reference in New Issue
Block a user