fix login form

This commit is contained in:
Xuan Sang LE 2018-02-19 17:05:22 +01:00
parent d26e8d281c
commit 7546af82ac
2 changed files with 4 additions and 2 deletions

View File

@ -312,6 +312,8 @@ self.OS.GUI =
password: ($ "#txtpass").val()
_API.handler.login data, (d) ->
if d.error then ($ "#login_error").html d.error else _GUI.startAntOS d.result
($ "#txtpass").keyup (e) ->
($ "#btlogin").click() if e.which is 13
, (e, s) ->
alert "System fall: Cannot init login screen"

View File

@ -71,8 +71,8 @@
</style>
<div id = "login_form">
<p>Welcome to AntOS, please identify</p>
<input id = "txtuser" type = "text" value = "User name" />
<input id = "txtpass" type = "password" value = "password" />
<input id = "txtuser" type = "text" value = "demo" />
<input id = "txtpass" type = "password" value = "demo" />
<button id = "btlogin">Login</button>
<span id = "login_error"></span>
</div>