Hi Zeno: I'm not really sure. Koha's authentication could certainly use a good modular refactoring... Locally, I added a Koha::Authen::OpenIDConnect module, made some slight modifications to C4::Auth::checkauth(), and created a service to handle the login. I think I pass the error codes into checkauth() and then display them on opac-auth.tt when the login fails. Just my 2 cents. David Cook Systems Librarian Prosentient Systems 72/330 Wattle St, Ultimo, NSW 2007
-----Original Message----- From: koha-devel-bounces@lists.koha-community.org [mailto:koha-devel- bounces@lists.koha-community.org] On Behalf Of Tajoli Zeno Sent: Thursday, 9 April 2015 2:22 AM To: Koha Devel Subject: [Koha-devel] Display errors of a new authentication system
Hi to all,
I want to add one more authentication system to Koha. LDAP/CAS/Shibboleh are not enough for a specific user !!
I understand that: 1)I need to write a module C4/Auth_with_xx.pm 2)I need to insert the login / logout of this system inside C4/Auth.pm
But I don't understand where I manage the errors during login (bad user name, bad password, etc.).
In C4/Auth.pm I see only return of 1/0 from login function, not a more complex message.
So, do we manage error from auth systems or not ?
Bye Zeno Tajoli
-- Dr. Zeno Tajoli Servizi Innovativi -- Automazione Biblioteche z.tajoli@cineca.it fax +39 02 2135520 CINECA - Sede operativa di Segrate _______________________________________________ Koha-devel mailing list Koha-devel@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel website : http://www.koha-community.org/ git : http://git.koha- community.org/ bugs : http://bugs.koha-community.org/