General Discussions
code that when logging in, goes to a specific page. Is not working

I'm doing the following code that, when logging in with a certain user, goes to a specific page, but it's not working. Where is the error?

Code:

[
Title = "Page 1";
]

Main [
Return(Self);

If \SecurityManager\IsLoggedOn() = “maiza”;

[

\DisplayManager\ShowPage("Supervisorio"smile;
]

]

I'm doing the following code that, when logging in with a certain user, goes to a specific page, but it's not working. Where is the error? Code: [ Title = "Page 1"; ] Main [ Return(Self); If \SecurityManager\IsLoggedOn() = “maiza”; [ \DisplayManager\ShowPage("Supervisorio"); ] ]

You should review the documentation for the functions you're attempting to use, paying special attention to what it actually returns.

\IsLoggedOn() returns a boolean, which will never equal "maiza".

Try \GetUserName().

Further, equality is not tested with a single equal sign.

You should review the documentation for the functions you're attempting to use, paying special attention to what it actually returns. \IsLoggedOn() returns a boolean, which will never equal "maiza". Try \GetUserName(). Further, equality is not tested with a single equal sign.
48
1
2
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft