mirror of
https://github.com/linuxserver/Heimdall.git
synced 2025-11-20 23:34:54 +09:00
feat: Prevent password submission when password is not changed.
This commit is contained in:
committed by
Attila Jozsef Kerekes
parent
756ab353f3
commit
0299ee6fa9
2
public/js/app.js
vendored
2
public/js/app.js
vendored
File diff suppressed because one or more lines are too long
2
public/mix-manifest.json
generated
2
public/mix-manifest.json
generated
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"/css/app.css": "/css/app.css?id=fb9e13c65ffee8ba7340",
|
"/css/app.css": "/css/app.css?id=fb9e13c65ffee8ba7340",
|
||||||
"/js/app.js": "/js/app.js?id=7f1d4778de811d7fc901"
|
"/js/app.js": "/js/app.js?id=6ae33b54881f793f30af"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -258,5 +258,13 @@ $.when( $.ready ).then(function() {
|
|||||||
current.toggleClass('active');
|
current.toggleClass('active');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
$('#itemform').on('submit', function(e) {
|
||||||
|
var passwordField = $('input[name="config[password]"]').first();
|
||||||
|
if (passwordField.length > 0) {
|
||||||
|
if (passwordField.attr('value') === fakePassword) {
|
||||||
|
passwordField.attr('value', '');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user