|
@@ -179,6 +179,10 @@ public class AccountLogicImpl implements AccountLogic {
|
|
|
if (manager != null) {
|
|
if (manager != null) {
|
|
|
if (manager.getPassword().equals(EncryptionUtil.encryptMD5(password))) {
|
|
if (manager.getPassword().equals(EncryptionUtil.encryptMD5(password))) {
|
|
|
|
|
|
|
|
|
|
+ if (manager.getStatus() != Manager.STATUS_APPROVED) {
|
|
|
|
|
+ throw new HttpUnauthorizedException("Manager unauthorized, need to be approved");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
removeCookiesByUserType(response, UserType.MANAGER);
|
|
removeCookiesByUserType(response, UserType.MANAGER);
|
|
|
ManagerPersistentCookie persistentCookie = new ManagerPersistentCookie();
|
|
ManagerPersistentCookie persistentCookie = new ManagerPersistentCookie();
|
|
|
persistentCookie.setId(manager.getId());
|
|
persistentCookie.setId(manager.getId());
|