mirror of
https://github.com/sheumann/hush.git
synced 2025-02-08 11:30:54 +00:00
more obscure
This commit is contained in:
parent
7600eec732
commit
1f17d3287a
@ -162,6 +162,9 @@ password_check(const char *old, const char *newval, const struct passwd *pwdp)
|
|||||||
else if (similiar(wrapped, newmono))
|
else if (similiar(wrapped, newmono))
|
||||||
msg = "too similiar";
|
msg = "too similiar";
|
||||||
|
|
||||||
|
else if ( strstr(newval, pwdp->pw_name) )
|
||||||
|
msg = "don't use something like your username as password";
|
||||||
|
|
||||||
else {
|
else {
|
||||||
safe_strncpy(wrapped + lenwrap, wrapped, lenwrap + 1);
|
safe_strncpy(wrapped + lenwrap, wrapped, lenwrap + 1);
|
||||||
if (strstr(wrapped, newmono))
|
if (strstr(wrapped, newmono))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user