Developer forum

Forum » Development » Deny user login with custom error message

Deny user login with custom error message

Umar Farooq
Reply

Hi,

I have a scenario where I have to get information from the third party api and based on some spcific properties i need to allow or deny user login on the website with custom error messages. i tried Standard.User.OnBeforeExtranetLogin but cant find any method or function in the api which prevents the user from logging in. Any ideas on how to achieve that?

 


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

You cannot do that - you can however redirect the user to another page at this stage preventing the login to finish.

 

You must be logged in to post in the forum