Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

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?
 
 
 
 
  • 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

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

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

  • 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 by xochi
clarification

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.