Flash Login Screen

Flash Login Screen

by James Chappell -
Number of replies: 3

Hi smile

I am using FlashMX to create a login screen. The problem is it wont work. I get bounced to the default login screen.

In my flash file the variables are username and password. This is the contents of the $_REQUEST array in php when pointing the login screen to a test php file:

Array ( [username] => test [password] => testpass [MOODLEID_] => %E9%CD%13I%A0 )

I have written a html form to do exactly the same thing:

<form action="http://my.moodlesite.com/login/index.php" method="post" id="login">

<input type="text" name="username" id="username" size="15" value="test" />

<input type="password" name="password" id="password" size="15" value="testpass" />

<input type="submit" value="Login" />

</form>

It has the same output!!!!: Array ( [username] => test [password] => testpass [MOODLEID_] => %E9%CD%13I%A0 )

AND it logs in fine surprise

What is that FlashMX is doing that the Moodle authentication doesn't like?

Any help would be greatly appreciated smile

James

Average of ratings: -
In reply to James Chappell

پاسخ برای: Flash Login Screen

by blabla head -
I have the same problem. check www.roshangar.ir, sorry its not in english but it does enter the site from 5 different places using different forms. After losing part of my mind over this I think the problem is that the request variable MOODLEID_ is not set to an initial value, but am still not sure.
Here is the AS2 I used:
var username:String = _parent.loginData.usernameTextField.text;
var password:String = _parent.loginData.passwordTextField.text;
if ((username == null || username == "") ||
(password == null || password == "")) {
var loadVarObj:LoadVars = new LoadVars();
loadVarObj.username = "guest";
loadVarObj.password = "guest";
loadVarObj.testcookies = 1;
loadVarObj.send("http://www.roshangar.info/school/login/index.php", "_self", "POST");
} else {
var loadVarObj:LoadVars = new LoadVars();
loadVarObj.username = username;
loadVarObj.password = password;
loadVarObj.testcookies = 1;
loadVarObj.send("http://www.roshangar.info/school/login/index.php", "_self", "POST");
}

In reply to James Chappell

Re: Flash Login Screen

by Shawn Drake -
Were you ever able to solve this James? I am having the exact same issue now.
In reply to Shawn Drake

Re: Flash Login Screen

by Nicholas Donkor -

has anybody been able to solve this problem