diff options
Diffstat (limited to 'index.html')
-rw-r--r-- | index.html | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -7,7 +7,11 @@ <script src="/javascript/jquery/jquery.min.js"></script> <script type="text/javascript"> function authSuccess(data) { - alert("username: " + data.username + "\ntoken: " + data.token ); + if (data.status == 'ERROR') { + alert("login error: " + data.errorstring); + } else { + alert("username: " + data.username + "\ntoken: " + data.token ); + } } function authError(req, status, error) { |