ui: login: fix another bogus gettext usage
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
a190979c04
commit
85b6c4ead4
|
@ -184,12 +184,11 @@ Ext.define('PBS.LoginView', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
failure: function(response) {
|
failure: function(response) {
|
||||||
loginForm.unmask();
|
loginForm.unmask();
|
||||||
|
let error = response.htmlStatus;
|
||||||
Ext.MessageBox.alert(
|
Ext.MessageBox.alert(
|
||||||
gettext('Error'),
|
gettext('Error'),
|
||||||
gettext('Login failed. Please try again<br>Error: ' + response.htmlStatus),
|
gettext('OpenID login failed, please try again') + `<br>${error}`,
|
||||||
function() {
|
() => { window.location = redirectURL; },
|
||||||
window.location = redirect_url;
|
|
||||||
},
|
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
success: function(response, options) {
|
success: function(response, options) {
|
||||||
|
|
Loading…
Reference in New Issue