Explorar el Código

Merge remote-tracking branch 'origin/4.0' into 4.0

4.0
zhangyulong hace 2 años
padre
commit
f04402d602
Se han modificado 1 ficheros con 7 adiciones y 1 borrados
  1. +7
    -1
      smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/login/LoginHelper.java

+ 7
- 1
smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/login/LoginHelper.java Ver fichero

@@ -69,7 +69,13 @@ public class LoginHelper {

return user;
}

public static UserSession simpleLogin(long useId){
User user = UserCache.getInstance().get(useId);
if (user == null) {
throw new BizException("账号或者密码出错");
}
return new UserSession(user.getId());
}

// public static UserSession login(LoginVO loginPO) {
// String key = loginPO.getUuid() + "_" + SwConsts.LOGIN_VERIFY_CODE;


Cargando…
Cancelar
Guardar