From 3c0d1c18502ea06d267c4dfd65f5e09cb9b22ce1 Mon Sep 17 00:00:00 2001 From: Yorhel Date: Thu, 30 May 2019 11:29:20 +0200 Subject: Improve weak-password message --- lib/VNDB/Handler/Users.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/VNDB/Handler/Users.pm') 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.

" ], + [ static => nolabel => 1, content => "Your current password is in a database of leaked passwords, please change your password to continue.

" ], [ 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}) { -- cgit v1.2.3