forked from mirrors/easyappointments
Code refactoring and improvements for the login page.
This commit is contained in:
parent
ce853c99ef
commit
7481ebca65
1 changed files with 4 additions and 2 deletions
|
@ -16,6 +16,8 @@
|
||||||
*/
|
*/
|
||||||
App.Pages.Login = (function () {
|
App.Pages.Login = (function () {
|
||||||
const $loginForm = $('#login-form');
|
const $loginForm = $('#login-form');
|
||||||
|
const $username = $('#username');
|
||||||
|
const $password = $('#password');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Login Button "Click"
|
* Login Button "Click"
|
||||||
|
@ -30,8 +32,8 @@ App.Pages.Login = (function () {
|
||||||
|
|
||||||
const data = {
|
const data = {
|
||||||
csrf_token: App.Vars.csrf_token,
|
csrf_token: App.Vars.csrf_token,
|
||||||
username: $('#username').val(),
|
username: $username.val(),
|
||||||
password: $('#password').val()
|
password: $password.val()
|
||||||
};
|
};
|
||||||
|
|
||||||
const $alert = $('.alert');
|
const $alert = $('.alert');
|
||||||
|
|
Loading…
Reference in a new issue