fix: identity: derive error for IdentityError
This commit is contained in:
parent
51894cfcb7
commit
1f25754822
1 changed files with 2 additions and 2 deletions
|
@ -3,12 +3,12 @@
|
||||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
|
||||||
use argon2_creds::CredsError;
|
use argon2_creds::CredsError;
|
||||||
use derive_more::Display;
|
use derive_more::{Display, Error};
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
pub type IdentityResult<V> = Result<V, IdentityError>;
|
pub type IdentityResult<V> = Result<V, IdentityError>;
|
||||||
|
|
||||||
#[derive(Debug, Display, Clone, Serialize, Deserialize, PartialEq, Eq, PartialOrd, Ord)]
|
#[derive(Debug, Error, Display, Clone, Serialize, Deserialize, PartialEq, Eq, PartialOrd, Ord)]
|
||||||
pub enum IdentityError {
|
pub enum IdentityError {
|
||||||
DuplicateUsername,
|
DuplicateUsername,
|
||||||
VerificationOTPSecretNotFound,
|
VerificationOTPSecretNotFound,
|
||||||
|
|
Loading…
Reference in a new issue