Is is possible to logon programmatically?

I have written a replacement logon page for the Servoy logon page. In my
match the look and feel of the application, and add the ability to handle
forgotton passwords without requiring the user to logon. I was able to
integrate this by disabling “Solution login required” in tools->security, and
setting my replacement form as the first form in the file->solution settings.

I am able to validate the users password using the security method
security.checkPassword. However, I do not seem to be able to
show the user as logged in.

Does anyone know how I can tell Servoy that the user is logged in from
within the programmatic context of my logon method?

If you don’t use “Solution login required” there is no Servoy security. So you can’t “login the user”.

You should move this to the feature request section. I would also like to be able to do

security.setUser(username)
``` or

security.loginUser(username/userid)

oh yes, you could use the automatic features: modifiername, creatorname, than also!

Allthough I would like to see the scripted login as well, I have a remark about HJK’s comments:

When not using Servoy’s Security, but your own, you probably have a global with your username/userid somewhere.

Under the properties of a column, you can specify this global variable to a column as an auto value as well, achieving exactly the same functionality.

Paul

for creatorname, this is possible,
but how would you do that, for the last modifier? in a simple way?

ehum, you got me there… :oops:

So, even more reason to have this feature for me now :wink:

Thank you very much for your comments gentlemen. I have posted this issue
in the feature requested section along with a poll. Please cast your vote.