提交 3d75ed2c 编写于 作者: M mindless

[FIXED HUDSON-3043] login completely broken for those upgrading to 1.283,

since old password field was not descrambled before encoding.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15342 71c3de6d-444a-0410-be80-ed276b4c234a
上级 3eeb8b96
......@@ -33,6 +33,7 @@ import hudson.model.UserProperty;
import hudson.model.UserPropertyDescriptor;
import hudson.tasks.Mailer;
import hudson.util.Protector;
import hudson.util.Scrambler;
import hudson.util.spring.BeanBuilder;
import net.sf.json.JSONObject;
import org.acegisecurity.Authentication;
......@@ -304,7 +305,7 @@ public class HudsonPrivateSecurityRealm extends SecurityRealm implements ModelOb
if (password != null) {
// Data loaded from old style config.. encode password now
// but don't force update now to allow room for downgrading
return PASSWORD_ENCODER.encodePassword(password,null);
return PASSWORD_ENCODER.encodePassword(Scrambler.descramble(password),null);
}
return passwordHash;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册