Prevent login except from Services

by Alfonso_MA   Last Updated September 11, 2019 16:07 PM - source

I would like to prevent my users to login except for those who login through my REST Service.

Is that possible?

Tags : 7 users services


Answers 1


It sounds like the login_disable module will do exactly what you need.

Prevent users from logging in to your Drupal site unless they know the secret key to add to the end of the login form page. ( default: http://example.com/?q=user/login&admin )

If your site has clean urls enabled you may use http://example.com/user/login?admin instead.

That way you can set a secret key so only users who know that key are able to log in using the login form.

Jdrupal
Jdrupal
September 11, 2019 16:03 PM

Related Questions



Register a user through URL in drupal 8

Updated March 29, 2017 16:07 PM

GET list of all roles on Drupal 8 via REST

Updated July 02, 2018 15:07 PM

Missing required argument name in login

Updated August 17, 2016 08:04 AM

Services Module Unable To Update User Fields

Updated September 27, 2016 09:03 AM