Hi Payal, You will have to write quite lot of code to achieve this goal. Currently we do not have the "user A is currently logged in" information. And actually I am not sure how you could know that if the user does not click on "logout". The authentication checks are done in C4::Auth::checkauth Regards, Jonathan 2016-07-01 8:43 GMT+01:00 Payal Mangyani <payal.mangyani3@gmail.com>:
Hello, I am new to perl as well as to koha and I want to modify Koha's code for authentication such that if a user with user name let say admin is logged in and meanwhile someone else wants to login with the same user name that is admin but with different ip address then the koha should restrict this activity. If user logged in has the following details - username-admin ip-192.168.1.129 and if another user try to login with the following - username-admin ip-192.168.1.130 Then that user should not be able to logged in.
I have been reading the Auth.pm file, it has code regarding authentication and I am unable to find that where the user is allowed to login after successful authentication as I want to put my code at that place.
_______________________________________________ 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/