From 89e5e6a223a3b7193da22dabb65a93b58b533172 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Tue, 16 Jan 2018 15:26:02 +0100 Subject: [PATCH] Revert "Bug 19514: Implement password restrictions into onboarding tool" This reverts commit 1fdf1398bea79ca60caaea4ccd9b58e3e3f8aa67. --- installer/onboarding.pl | 9 +-------- .../prog/en/includes/onboarding_messages.inc | 6 ------ 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/installer/onboarding.pl b/installer/onboarding.pl index 76cc70810a..8b032c999b 100755 --- a/installer/onboarding.pl +++ b/installer/onboarding.pl @@ -146,8 +146,6 @@ if ( $step == 3 ) { my $cardnumber = $input->param('cardnumber'); my $userid = $input->param('userid'); - my ( $is_valid, $passworderror) = Koha::AuthUtils::is_password_valid( $firstpassword ); - if ( my $error_code = checkcardnumber($cardnumber) ) { if ( $error_code == 1 ) { push @messages, { code => 'ERROR_cardnumber_already_exists' }; @@ -160,13 +158,8 @@ if ( $step == 3 ) { push @messages, { code => 'ERROR_password_mismatch' }; } - elsif ( $passworderror) { - push @messages, { code => 'ERROR_password_too_short'} if $passworderror eq 'too_short'; - push @messages, { code => 'ERROR_password_too_weak'} if $passworderror eq 'too_weak'; - push @messages, { code => 'ERROR_password_has_whitespaces'} if $passworderror eq 'has_whitespaces'; - - } else { + my $patron_data = { surname => scalar $input->param('surname'), firstname => scalar $input->param('firstname'), diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/onboarding_messages.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/onboarding_messages.inc index fbe0d3a635..d817401964 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/onboarding_messages.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/onboarding_messages.inc @@ -26,12 +26,6 @@
Circulation rule created!
[% CASE 'error_on_insert_circ_rule' %]
Circulation rule not created!
- [% CASE 'ERROR_password_too_short' %] -
The patron has not been created the entered password was too short
- [% CASE 'ERROR_password_too_weak' %] -
The patron has not been created the entered password was too weak, must contain at least one uppercase, and lower case letter and one number
- [% CASE 'ERROR_password_has_whitespaces' %] -
The patron has not been created the entered password contained whitespaces
[% CASE %][% message %] [% END %] [% END %] -- 2.39.5