diff --git a/assets/css/login.css b/assets/css/login.css index 0a77cbd..69191cd 100644 --- a/assets/css/login.css +++ b/assets/css/login.css @@ -109,6 +109,10 @@ body { color: #1a73e8; } +.biz-login-wrap .form-group input.error:focus+label { + color: #d93025; +} + .biz-login-wrap .password-fixed { transform: translate3d(0, -175%, 0); z-index: 1 !important; @@ -197,9 +201,10 @@ body { font-weight: 500; } -.biz-login-wrap .err-msg { +.biz-login-wrap .err-msg:not(:empty) { color: #d93025; font-size: 12px; + margin-top: 5px; } .biz-login-wrap h4 { diff --git a/assets/js/login.js b/assets/js/login.js index 22c1bb0..3c6e5ae 100644 --- a/assets/js/login.js +++ b/assets/js/login.js @@ -76,7 +76,8 @@ function loginUser(email, password) { .then((response) => response.text()) .then((result) => { const user = JSON.parse(result); - setCookie('authentication', JSON.stringify(user.sessionId), 1); + setCookie('authentication', user.result.sessionId, 1); + window.location = '../authentication'; }) .catch((error) => console.log('error', error)); } diff --git a/login/index.html b/login/index.html index 9a5550d..2c91b89 100644 --- a/login/index.html +++ b/login/index.html @@ -21,10 +21,10 @@
- + -
+
@@ -53,15 +53,15 @@ onfocus="this.value = this.value;"> -
+