Browse Source

Update identity.rs

fix
pull/677/head
liberodark 6 years ago
committed by GitHub
parent
commit
c2ad8ba7a7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/api/identity.rs

2
src/api/identity.rs

@ -102,7 +102,7 @@ fn _password_login(data: ConnectData, conn: DbConn, ip: ClientIp) -> JsonResult
*/
let ldap = LdapConn::new(CONFIG.ldap_host.as_str())?;
match ldap.simple_bind(data.username, data.password) {
match ldap.simple_bind(data.username.unwrap(), data.password.unwrap()) {
_ => {}
};

Loading…
Cancel
Save