Univention Bugzilla – Attachment 7286 Details for
Bug 39898
username gets removed from loginform on session timeout
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
39898.patch (text/plain), 3.30 KB, created by
Florian Best
on 2015-11-12 11:18:53 CET
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Florian Best
Created:
2015-11-12 11:18:53 CET
Size:
3.30 KB
patch
obsolete
>diff --git a/management/univention-management-console-frontend/umc/dialog/LoginDialog.js b/management/univention-management-console-frontend/umc/dialog/LoginDialog.js >index ffc7367..c534973 100644 >--- a/management/univention-management-console-frontend/umc/dialog/LoginDialog.js >+++ b/management/univention-management-console-frontend/umc/dialog/LoginDialog.js >@@ -125,19 +125,22 @@ define([ > if (message.slice(-1) !== '.') { > message += '.'; > } >- var title = _('Authentication failure'); >+ var title = info.title || _('Authentication failure'); > if (result.password_expired) { > title = _('The password is expired'); > } else if (result.missing_prompts) { > title = _('One time password required'); > } >- this.set('LoginMessage', '<h1>' + title + '</h1><p>' + message + '</p>'); >+ message = '<h1>' + title + '</h1><p>' + message + '</p>'; > } >+ this.set('LoginMessage', message); > }, > > _setLoginMessageAttr: function(content) { > this._text.set('content', content); >- this._wipeInMessage(); >+ if (content) { >+ this._wipeInMessage(); >+ } > }, > > _wipeInMessage: function() { >@@ -370,12 +373,13 @@ define([ > > // update info text > var msg = ''; >+ var title = ''; > > // Show warning if connection is unsecured > if (window.location.protocol === 'http:') { > var link = '<a href="https://' + window.location.href.slice(7) + '">'; >- msg += '<h1>' + _('Insecure Connection') + '</h1>'; >- msg += '<p>' + _('This network connection is not encrypted. All personal or sensitive data will be transmitted in plain text. Please follow %s this link</a> to use a secure SSL connection.', link) + '</p>'; >+ title = _('Insecure Connection'); >+ msg = _('This network connection is not encrypted. All personal or sensitive data will be transmitted in plain text. Please follow %s this link</a> to use a secure SSL connection.', link); > } > > if (has('ie') < 9 || has('ff') < 24) { >@@ -386,13 +390,14 @@ define([ > // IE 8 is also known to cause timeouts when under heavy load > // (presumably because of many async requests to the server > // during UDM-Form loading) >- msg += '<h1>' + _('Your Browser is outdated') + '</h1>'; >- msg += '<p>' + _('Your Browser is outdated and should be updated. You may continue to use Univention Management Console but you may experience performance issues and other problems.') + '</p>'; >+ title = _('Your Browser is outdated'); >+ msg = _('Your Browser is outdated and should be updated. You may continue to use Univention Management Console but you may experience performance issues and other problems.') + msg; > } > > if (tools.status('setupGui')) { > // user has already logged in before, show message for relogin >- msg = '<h1>' + _('Session timeout') + '</h1><p>' + _('Your session has been closed due to inactivity. Please login again.') + '</p>'; >+ title = _('Session timeout'); >+ msg = _('Your session has been closed due to inactivity. Please login again.'); > > // remove language selection and SSO button after first successful login > query('#umcLoginHeaderRight').style('display', 'none'); >@@ -400,7 +405,7 @@ define([ > } > > query('#umcLoginMessages').style('display', 'none'); >- this._text.set('content', msg); >+ this.updateForm({message: msg, title: title}); > > return this._show(); > },
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 39898
: 7286