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 () {
|
||||
const $loginForm = $('#login-form');
|
||||
const $username = $('#username');
|
||||
const $password = $('#password');
|
||||
|
||||
/**
|
||||
* Login Button "Click"
|
||||
|
@ -30,8 +32,8 @@ App.Pages.Login = (function () {
|
|||
|
||||
const data = {
|
||||
csrf_token: App.Vars.csrf_token,
|
||||
username: $('#username').val(),
|
||||
password: $('#password').val()
|
||||
username: $username.val(),
|
||||
password: $password.val()
|
||||
};
|
||||
|
||||
const $alert = $('.alert');
|
||||
|
|
Loading…
Reference in a new issue