I created a enhanced security login on a small solution.
In the authenticator solution I must call the security.login() function.
I used a long time to find out, wich values a have to set for the username and a_userUID parameter.
At the end I found out, that if I pass the login-user name on both parameters the function returns true.
Does anyone know, witch are the requirements for this two parameter or in other words against what the login function make the authentication?
When you call this, you can give any username and id, but you need to provide a valid group. “Administrators” is always a valid group.
With my tests, this is not so.
I also tried this in many different ways. My result is, that somthing validates the second parameter.
I made also a test with the Servoy FrameWork. I set a break point bevore the function login an made tests with different combinations. The first parameter would not be tested, but the second.
But I dont know what are the requirements.
Maybe that user DOES exist in under the users in the servoy-admin page?
and are you really calling the securirty.login function inside the authenticator solution?
I made some tests again and it seems that I was a bit confused
All works as you described. My fault was, that I called the function twice. By the second call, it is possible to change the first parameter to get true back. But it is not possible to change the second parameter.
Thanks to all for the informations.