mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-31 21:55:13 +08:00
🐤 Sync 2026-07-30 00:01:42
This commit is contained in:
1 parent
04fb515e5a
commit
6a78b2a925
34 files changed
+472
-290
No files matched your search
@@ -60,6 +60,21 @@ return view.extend({
|
||||
o.retain = true;
|
||||
o.depends('use_auth', '1');
|
||||
|
||||
o = s.option(form.ListValue, 'autologin_user', _('Auto login user'),
|
||||
_('Automatically login/logout of the specified user based on LuCI credentials.'));
|
||||
o.load = function(section_id) {
|
||||
delete this.keylist;
|
||||
delete this.vallist;
|
||||
|
||||
const users = uci.get(this.config, section_id, 'auth_users');
|
||||
this.value('', _('none'));
|
||||
for (const userpw of users)
|
||||
this.value(userpw.split(':')[0]);
|
||||
|
||||
return this.super('load', section_id);
|
||||
}
|
||||
o.depends('use_auth', '1');
|
||||
|
||||
o = s.option(form.Flag, 'global_readonly', _('Global Readonly'));
|
||||
o.default = o.disabled;
|
||||
o.rmempty = false;
|
||||
|
||||
Reference in new issue
Block a user