mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-06-20 08:25:16 +00:00
Return keys listing in auth options
This commit is contained in:
@ -20,8 +20,9 @@ use crate::utils::date_utils::time;
|
||||
pub fn get_auth_options(r: &mut HttpRequestHandler) -> RequestResult {
|
||||
let mail = r.post_email("mail")?;
|
||||
let admin = admin_account_helper::find_admin_by_email(&mail)?;
|
||||
let keys = admin_account_key_helper::get_admin_keys(admin.id)?;
|
||||
|
||||
r.set_response(AdminAuthOptions::new(&admin))
|
||||
r.set_response(AdminAuthOptions::new(&admin, &keys))
|
||||
}
|
||||
|
||||
/// Login admin using a reset token
|
||||
|
Reference in New Issue
Block a user