Bug 22706: Add plugin hooks for Norwegian national patron database
[koha.git] / members / member-password.pl
index 256c725..c1db3aa 100755 (executable)
@@ -91,6 +91,9 @@ if ( $newpassword and not @errors) {
         elsif ( $_->isa('Koha::Exceptions::Password::TooWeak') ) {
             push @errors, 'ERROR_password_too_weak';
         }
+        elsif ( $_->isa('Koha::Exceptions::Password::Plugin') ) {
+            push @errors, 'ERROR_from_plugin';
+        }
         else {
             push( @errors, 'BADUSERID' );
         }