Jump to content

WebDirect: Re-Login as [Guest] not working when No Dialog is enabled?


xochi
 Share

This topic is 2674 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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?
 
 
 
 
Link to comment
Share on other sites

  • 5 months later...

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

Link to comment
Share on other sites

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 by James Gill
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 by xochi
clarification
Link to comment
Share on other sites

This topic is 2674 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.