summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2019-05-30 11:29:20 +0200
committerYorhel <git@yorhel.nl>2019-05-30 11:29:20 +0200
commit3c0d1c18502ea06d267c4dfd65f5e09cb9b22ce1 (patch)
treec621e95a33ce78d9d3ce9a8fdadb6d1993c62b57 /lib
parentc5e8436c225238acac38be80db911669a15133b9 (diff)
Improve weak-password message
Diffstat (limited to 'lib')
-rw-r--r--lib/VNDB/Handler/Users.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/VNDB/Handler/Users.pm b/lib/VNDB/Handler/Users.pm
index 0177e4aa..e27f05ea 100644
--- a/lib/VNDB/Handler/Users.pm
+++ b/lib/VNDB/Handler/Users.pm
@@ -308,7 +308,7 @@ sub setpass {
{ post => 'usrpass2', minlength => 4, maxlength => 500 },
);
push @{$frm->{_err}}, 'Passwords do not match' if $frm->{usrpass} ne $frm->{usrpass2};
- push @{$frm->{_err}}, 'The chosen password is too weak, please choose a stronger password'
+ push @{$frm->{_err}}, 'Your chosen password is in a database of leaked passwords, please choose another one.'
if $self->{password_db} && PWLookup::lookup($self->{password_db}, $frm->{usrpass});
if(!$frm->{_err}) {
@@ -326,7 +326,7 @@ sub setpass {
[ static => nolabel => 1, content => 'Now you can set a password for your account.'
.' You will be logged in automatically after your password has been saved.' ],
) : (
- [ static => nolabel => 1, content => "Your current password is too weak, please change your password to continue.<br><br>" ],
+ [ static => nolabel => 1, content => "Your current password is in a database of leaked passwords, please change your password to continue.<br><br>" ],
[ passwd => short => 'curpass', name => 'Current password' ],
),
[ passwd => short => 'usrpass', name => 'Password' ],
@@ -448,7 +448,7 @@ sub edit {
);
push @{$frm->{_err}}, 'Passwords do not match'
if ($frm->{usrpass} || $frm->{usrpass2}) && (!$frm->{usrpass} || !$frm->{usrpass2} || $frm->{usrpass} ne $frm->{usrpass2});
- push @{$frm->{_err}}, 'The chosen password is too weak, please choose a stronger password'
+ push @{$frm->{_err}}, 'Your chosen password is in a database of leaked passwords, please choose another one'
if $self->{password_db} && PWLookup::lookup($self->{password_db}, $frm->{usrpass});
if(!$frm->{_err}) {