diff options
author | Guilhem Moulin <guilhem.moulin@fripost.org> | 2013-01-18 21:24:39 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem.moulin@fripost.org> | 2013-01-18 21:24:39 +0100 |
commit | 1f365b29f094912fa8f6e9d7fe0348148eb60ccf (patch) | |
tree | 74ab5846ce9a5003eb29084f29f768291c159a1f /lib/Fripost/Panel | |
parent | c70ea95c7e2e07cccbff9b7cce26e7bb506d1db6 (diff) |
Added the possibility to chooze the SASL mechanism (GSSAPI or DIGEST-MD5).
Diffstat (limited to 'lib/Fripost/Panel')
-rw-r--r-- | lib/Fripost/Panel/Interface.pm | 3 | ||||
-rw-r--r-- | lib/Fripost/Panel/Login.pm | 6 |
2 files changed, 2 insertions, 7 deletions
diff --git a/lib/Fripost/Panel/Interface.pm b/lib/Fripost/Panel/Interface.pm index 18b9a48..fcd4f97 100644 --- a/lib/Fripost/Panel/Interface.pm +++ b/lib/Fripost/Panel/Interface.pm @@ -264,8 +264,7 @@ sub EditLocal : Runmode { $fp = Fripost::Schema::->auth( $u, $q->param('oldpw'), - ldap_uri => $CFG{ldap_uri}, - ldap_suffix => $CFG{ldap_suffix}, + %CFG, -die => "Wrong password (for ‘".$u."’)." ); }; $error = $@ || $fp->user->passwd( diff --git a/lib/Fripost/Panel/Login.pm b/lib/Fripost/Panel/Login.pm index ef8474c..4f00f6b 100644 --- a/lib/Fripost/Panel/Login.pm +++ b/lib/Fripost/Panel/Login.pm @@ -65,11 +65,7 @@ sub cgiapp_init { } Encode::_utf8_on($u); $u = email_to_ascii($u); - my $fp = Fripost::Schema::->auth($u, $p, - ldap_uri => $CFG{ldap_uri}, - ldap_suffix => $CFG{ldap_suffix}, - -die => 0 - ); + my $fp = Fripost::Schema::->auth($u, $p, %CFG, -die => 0); return 0 unless defined $fp; $fp->done; return $u; |