#1 2019-04-17 10:53:21

ianxevcd
Member
Registered: 2016-07-04
Posts: 11

How to work with CanUserLog?

Hi,
I need to make some additional user checks when user log in, e.g. his current status. As I understand I can make it in CanUserLog function. Does anybody have an example? Thanks.

Last edited by ianxevcd (2019-04-17 10:56:51)


Alexander

Offline

#2 2019-04-17 14:45:57

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,240
Website

Re: How to work with CanUserLog?

Define your own inheriting TSQLAuthUser class, then attach it to the TSQLModel.

Then override the CanUserLog virtual function to return "false" and reject the user if needed.

Offline

#3 2019-04-17 16:13:13

ianxevcd
Member
Registered: 2016-07-04
Posts: 11

Re: How to work with CanUserLog?

Thank you. I think I figured out how to work with it.


Alexander

Offline

Board footer

Powered by FluxBB