|
@@ -166,7 +166,7 @@ public class TokenManager {
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
public static User login(User user, Boolean rememberMe) {
|
|
public static User login(User user, Boolean rememberMe) {
|
|
|
- ShiroToken token = new ShiroToken(user.getUsername(), user.getPassword(), user.getType(),AFTConstants.USER_SOURCE_REGISTER);
|
|
|
|
|
|
|
+ ShiroToken token = new ShiroToken(user.getMobile(), user.getPassword(), user.getType(),AFTConstants.USER_SOURCE_REGISTER);
|
|
|
token.setRememberMe(null == rememberMe ? false : rememberMe);
|
|
token.setRememberMe(null == rememberMe ? false : rememberMe);
|
|
|
SecurityUtils.getSubject().login(token);
|
|
SecurityUtils.getSubject().login(token);
|
|
|
setVal2Session(CSRF_TOKEN, UUID.randomUUID().toString().replace("-", ""));
|
|
setVal2Session(CSRF_TOKEN, UUID.randomUUID().toString().replace("-", ""));
|