mirror of
https://github.com/lxsang/antos-frontend.git
synced 2024-12-26 17:38:20 +01:00
fix login form
This commit is contained in:
parent
d26e8d281c
commit
7546af82ac
@ -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"
|
||||
|
||||
|
@ -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>
|
Loading…
Reference in New Issue
Block a user