You are not logged in.
Pages: 1
Sorry I have decided to use the access session and then I convert my current class in TSQLUser TSQLAuthUser.
I tried to derive my class TSQLUser = Class (TSQLAuthUser) but does not work, so now I decided to change the current class TSQLAuthUser to add the fields Name, Last Name and Email etc. ...
The question is what is the right solution to implement the class and the class TSQLAuthUser TSQLAuthGroup?
Thanks corchi72
Offline
The TSQLAuthUser is used internally for authentication and session handling at connection level.
This class is a "standard/common" class, and shall not be modified by application code.
In fact, this type is not designed to match the "User" at the application level.
You may be confused that e.g. in AJAX applications, a user password is used to open a session and a cookie.
But there is no direct link between authentication session and end-user in our framework, on purpose.
So do not change nor the TSQLAuthUser nor the TSQLAuthGroup class.
But create your own TSQLUser class, refering to TSQLAuthUser if you want to.
Online
ok thanks. but it means that when I create a user in the class TSQLUser then I have to create it TSQLAuthUser in the class? The new class must be written as:
TSQLUser = Class(TSQLFile)
public
AuthUser :TSQLAuthUser //that I use for the connection?
end
Offline
but I must insert manually the users into the table AuthUser or exist a form with the loginform?
Offline
Pages: 1