Can perform local authentication
This commit is contained in:
@ -96,6 +96,11 @@ impl AppConfig {
|
||||
secret
|
||||
}
|
||||
|
||||
/// Check out whether provided credentials are valid or not for local authentication
|
||||
pub fn check_local_login(&self, user: &str, pass: &str) -> bool {
|
||||
self.auth_username == user && self.auth_password == pass
|
||||
}
|
||||
|
||||
/// Get OpenID providers configuration
|
||||
pub fn openid_provider(&self) -> Option<OIDCProvider<'_>> {
|
||||
if self.disable_oidc {
|
||||
|
Reference in New Issue
Block a user