Hi Folks
Having experimented with basic security I’m now looking to implement it on a test Web Solution. However I’d like to use my own login form. Should be simple but the method ‘login’ seems not to take the parameters of username and password as expected and as used in the ‘default’ login form???
security.login(display_username, a_userUID, groups)
Does anyone have a sample of the use of one’s own form to log into the basic security (we are not using an authenticator solution) simply using ‘Must Authenticate’ flag and our own login form to enter the user credentials.
Cheers
Ian
So you have Enhanced Security turned off on your server (and developer)?
goldcougar:
So you have Enhanced Security turned off on your server (and developer)?
Yes I have this turned off - Is that correct Scott?
I’m looking to use the Servoy basic security and that works well using the default login form but I need some more functionality during the login (simple sever selection) so need to use my own form.
Ian
I have the solution able to login using the default form - but I need to run other code after the security has done its thing - how can I inject into the login process if I need to use the default form?
Any Servoy feedback on this would be very useful - thanks.
Ian
Any chance of some feedback on this Servoy?
onSolutionOpen function runs after login.
You could also set your first form to a blank form with no datasource. Then add an onLoad to that form to put in your own logic and switch datasources, and then show the main form you want to show.
goldcougar:
onSolutionOpen function runs after login.
Thanks Scott - that’s where I was trying not to go. I figured there must be a way to code the login without needing the default form?? Beggars belief that there isn’t!
Cheers
Ian