mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
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,
|
||||
identity: &$crate::common::Identity,
|
||||
value: &$secret,
|
||||
) -> Result<(), ValidatorError> {
|
||||
) -> Result<(), $crate::server::ValidatorError> {
|
||||
if &(self as &$crate::server::Provider<$secret>).provide(identity)? == value {
|
||||
Ok(())
|
||||
} else {
|
||||
Err(ValidatorError::AuthenticationFailed)
|
||||
Err($crate::server::ValidatorError::AuthenticationFailed)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue