February 15, 201510 yr In FMS13v5, I have a solution which at one point requires the user to relogin using the [Guest] account. If I script it as follows: Re-Login[] Set Variable ($err = Get(LastError) Show Custom Dialog ("Error = " & $err) As long as the user chooses the Guest button on the Re-Login dialog, it works fine, and Err= 0, and the account changes to [Guest]. If I script it as follows: Re-Login[No Dialog] Set Variable ($err = Get(LastError) Show Custom Dialog ("Error = " & $err) Then I get Err=5 (Command is invalid) and the account privilege does not change to the [Guest] account. I tried some variations on the Re-Login user and password parameter, such as ReLogin user = "[Guest]", password = "" ReLogin user = "", password = "" ReLogin user = "", password = (blank) but none of these seem to work (I get Error 212, Invalid user account and/or password). Help?
August 5, 201510 yr I have a similar issue. A client is requesting I roll my own login page. So I am using something like this; Set Varable [$User; System::Name] Set Variable [$PW; System::PW] Re-Login[NoDialog;$User;$PW] I got an 213 error When I try it showing the dialog, I see the Name and PW aren't setting in the dialog box. I am using WebDirect on FMS14 Jerry
August 5, 201510 yr Just out of curiosity, are you trying to Re-Login as the [Guest] account after they authenticate or are you using the File Option to automatically Log In with Guest Account? Edited August 5, 201510 yr by James Gill
August 9, 201510 yr James in my scenario the user opens the database as Guest. Then they enter some credentials in some global fields. then the script should re log them in using the new credentials. Jerry
August 9, 201510 yr Author I have no trouble with going from Guest login to actual login. JerrySalem, I suspect there's some other simple bug in your system (perhaps the values of System::Name and System::PW are not set properly, or the Guest user doesn't have permission to read these two fields? In my case, the thing that doesn't work for me (and gives the 212 error) is going the other direction: Taking a logged-in user and trying to re-login using the [Guest] account. Edited August 9, 201510 yr by xochi clarification
Create an account or sign in to comment