Error handling of AutoLogin

Hi,

I’m developing a Login-Frontend using PHP. On server side I generate a HMTL file where the config fields autologin, username and password are set correctly. I’m doing this because I’m not a Flash Developer and don’t want to install all that development software (having linux only).

You can see the interface here in action.

However, if username or password is invaild, SparkWeb freezes while loading. This may happen, because username and password are entered by the user as normal. Is this a bug or feature?

Would it be possible that SparkWeb would call this refreshPage() function or better another user defined JavaScript function, if autoLogin is enabled?

I assume the “bug” is located in …/SparkWeb/src/SparkWeb.mxml, function handleError(event:XIFFErrorEvent):void, because calling loginDialog.reset() has no effect, if autoLogin is enabled.

Hi Coolcat,

I don’t suppose you’d mind sharing some of that php? It sounds like a handy way to get sparkweb working with basic authentication.

cheers

grimsy

Here it is. However this is not working good, because of the bug described above.
index.php (18163 Bytes)

login.css (925 Bytes)

Great, thanks.

Hopefully I shouldn’t get plagued with the same issue.

Basic authentication will be against our LDAP server which is also what Openfire is running against, therefore before SparkWeb receives the username/password, Apache should have already verified that it is correct.

Perhaps as an short term work around, you could do some in page validation of the user account against your database. Might not be the best solution, but should stop it from hanging.

Thanks again.

Perhaps as an short term work around, you could do some in page validation of the user account against your database. Might not be the best solution, but should stop it from hanging.

Yeah, thats the plan…there should be an “TODO” somewhere. However, SparkWeb is already a really buggy application, so only very few user are really using this. This means this has not really high priority here.

http://www.igniterealtime.org/issues/browse/SW-76