luci/modules/luci-base/luasrc
Fabian Bläse e54708a451 luci-base: hide "No password set!" notification if password login is disabled
The special characters '!' and '*' in /etc/shadow are
used to disable password login for a specific account.

The character 'x' has no special meaning, but should not
be interpreted as an empty password.

However, Luci treats the special characters '!' and 'x' like no password is
set and displays the "No password set!" notification.

As this might be misleading, the extra check for these special
characters is removed, so the invalid hash is returned in that case.

This aligns the behavior of this notification with a change in rpcd,
which also removed these extra checks, so no login is possible, if
password login is disabled [1].

[1] https://git.openwrt.org/?p=project/rpcd.git;a=commit;h=3df62bcebd2caff47506ccffb42df8d2d2123c06

Signed-off-by: Fabian Bläse <fabian@blaese.de>
2020-12-04 21:51:13 +01:00
..
controller/admin luci-base: implement JSON endpoint to fetch menu information 2020-04-16 13:30:35 +02:00
model luci-base: set the fallback default of rollback timeout to 90s 2020-10-21 18:47:38 +03:00
sgi luci-base: uhttpd.lua: expose all CGI variables 2020-04-10 21:03:19 +02:00
sys timezone data: update to 2020d 2020-10-31 20:17:39 +02:00
view luci-base: set the fallback default of rollback timeout to 90s 2020-10-21 18:47:38 +03:00
cacheloader.lua Update my email addresses in the license headers 2015-01-16 23:49:44 +01:00
ccache.lua Update my email addresses in the license headers 2015-01-16 23:49:44 +01:00
config.lua Globally reduce copyright headers 2015-01-16 23:38:38 +01:00
dispatcher.lua Merge pull request #4239 from etactica/error404-messages 2020-08-31 14:12:54 +02:00
dispatcher.luadoc luci-base: dispatcher: remove tree modifier support 2018-11-27 14:46:55 +01:00
i18n.lua luci-base: remove unused i18n functions 2018-11-05 11:01:45 +01:00
i18n.luadoc luci-base: remove unused i18n functions 2018-11-05 11:01:45 +01:00
store.lua Update my email addresses in the license headers 2015-01-16 23:49:44 +01:00
sys.lua luci-base: hide "No password set!" notification if password login is disabled 2020-12-04 21:51:13 +01:00
sys.luadoc luci-base: add luci.sys.process.exec() 2018-11-14 20:46:04 +01:00
template.lua luci-base: template.lua: fix nil access in string template error handling 2020-06-19 14:51:49 +02:00
version.lua Globally reduce copyright headers 2015-01-16 23:38:38 +01:00
xml.lua luci-base(-libs): move pcdata() and striptags() from util- to xml-class 2020-07-19 20:14:35 +02:00
xml.luadoc luci-base(-libs): move pcdata() and striptags() from util- to xml-class 2020-07-19 20:14:35 +02:00