EPrints Technical Mailing List Archive
Message: #08855
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] disable login for users
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>, Yuri <yurj@alfa.it>
- Subject: Re: [EP-tech] disable login for users
- From: Tomasz Neugebauer <Tomasz.Neugebauer@concordia.ca>
- Date: Tue, 1 Feb 2022 21:32:30 +0000
CAUTION: This e-mail originated outside the University of Southampton.
Also keep in mind that you might have users already authenticated, with unexpired authentication cookies/sessions. I do remember that there is also a way of clearing all of the existing logged-in "tickets" from the database, to ensure that everyone will be
required to go through that login script, but I don't remember which table it is that you would have to clear.
Tomasz
From: eprints-tech-bounces@ecs.soton.ac.uk <eprints-tech-bounces@ecs.soton.ac.uk> on behalf of Yuri via Eprints-tech <eprints-tech@ecs.soton.ac.uk>
Sent: Monday, January 31, 2022 9:45 AM To: eprints-tech@ecs.soton.ac.uk <eprints-tech@ecs.soton.ac.uk> Subject: Re: [EP-tech] disable login for users Attention This email originates from outside the concordia.ca domain. // Ce courriel provient de l'exterieur du domaine de concordia.ca
CAUTION: This e-mail originated outside the University of Southampton. Hi! sorry for the noise, I've solved with $c->{check_user_password} = sub { my( $session, $username, $password ) = @_; my $user = EPrints::DataObj::User::user_with_username( $session, $username ); return 0 unless $user; my $user_type = $user->get_type; if( $user_type eq "admin" || $user_type eq "editor" ) { # internal authentication for "admin" type return $session->get_database->valid_login( $username, $password ); } return 0; } in <archive>/cfg/cfg.d/user_login.pl Il 31/01/22 15:34, Yuri via Eprints-tech ha scritto: > CAUTION: This e-mail originated outside the University of Southampton. > > Hi! > > I'm migrating an Eprints repository and I would like no user (but > editor and admin yes) could login or do anything. I've disabled creating > logins but also I would like to stop existing users. > > What is the simplest way? Remove permissions to the user role? > > > *** Options: https://can01.safelinks.protection.outlook.com/?url=""> > *** Archive: https://can01.safelinks.protection.outlook.com/?url=""> > *** EPrints community wiki: https://can01.safelinks.protection.outlook.com/?url=""> *** Options: https://can01.safelinks.protection.outlook.com/?url=""> *** Archive: https://can01.safelinks.protection.outlook.com/?url=""> *** EPrints community wiki: https://can01.safelinks.protection.outlook.com/?url=""> |
- Follow-Ups:
- Re: [EP-tech] disable login for users
- From: Tomasz Neugebauer <Tomasz.Neugebauer@concordia.ca>
- Re: [EP-tech] disable login for users
- References:
- [EP-tech] disable login for users
- From: Yuri <yurj@alfa.it>
- Re: [EP-tech] disable login for users
- From: Yuri <yurj@alfa.it>
- Re: [EP-tech] disable login for users
- From: Tomasz Neugebauer <Tomasz.Neugebauer@concordia.ca>
- [EP-tech] disable login for users
- Prev by Date: Re: [EP-tech] disable login for users
- Next by Date: Re: [EP-tech] mixed-content warnings
- Previous by thread: [EP-tech] Sort view with creators_name and corp_creators
- Index(es):