diff --git a/default.tpl b/default.tpl index b838a32..621a2b9 100644 --- a/default.tpl +++ b/default.tpl @@ -849,14 +849,20 @@ function selectionMask() { function showLogin(options) { if (!HFS.sid) // the session was just deleted return location.reload() // but it's necessary for login - var d = dialog('\ -
\ - Username\ -
\ -
Password\ -
\ -

\ -
', options) + var d = dialog(` +
+ {.!Username.} +
+
{.!Password.} +
+

+
`, options) + + if (HFS.user) + d.find('form').prepend(`
+ The current account (${HFS.user}) has no access to this resource. +
Please enter different credentials. +
`) d.find('form').submit(function(){ var vals = d.find('[name]').get().map(x=> x.value.trim())