macro impl_validator_using_provider!
: use $crate::server::ValidatorError
instead of ValidatorError
This commit is contained in:
parent
372e37b31f
commit
fd26d04635
1 changed files with 2 additions and 2 deletions
|
@ -13,11 +13,11 @@ macro_rules! impl_validator_using_provider {
|
||||||
&self,
|
&self,
|
||||||
identity: &$crate::common::Identity,
|
identity: &$crate::common::Identity,
|
||||||
value: &$secret,
|
value: &$secret,
|
||||||
) -> Result<(), ValidatorError> {
|
) -> Result<(), $crate::server::ValidatorError> {
|
||||||
if &(self as &$crate::server::Provider<$secret>).provide(identity)? == value {
|
if &(self as &$crate::server::Provider<$secret>).provide(identity)? == value {
|
||||||
Ok(())
|
Ok(())
|
||||||
} else {
|
} else {
|
||||||
Err(ValidatorError::AuthenticationFailed)
|
Err($crate::server::ValidatorError::AuthenticationFailed)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue