Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Template Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Login via Flash


Go to End


3 Posts   1877 Views

Avatar
goodju

Community Member, 8 Posts

28 July 2010 at 12:11am

hello everyone,

I've got a PageTemplate that includes a big Flash application. For usability i need to offer a login INSIDE this application which means, I need to send the user input via HTTP_RAW_POST_DATA (or whatever else) to php.

And then? I found some "Customized LoginForms",but I don't need a form, but a function. Anyone a simple solution? (it doesnt have to be super-secure)

greetings. goodju

Avatar
Willr

Forum Moderator, 5523 Posts

28 July 2010 at 9:09pm

Have a look at Security::authenticate($email, $password) I'm pretty sure if you can query that function you can bypass the default authenticator classes etc

http://api.silverstripe.org/2.4/sapphire/security/Security.html#methodauthenticate

Avatar
goodju

Community Member, 8 Posts

2 August 2010 at 10:25pm

Thanks alot Willr!

I'll give it a try asap! Had to pause the project for some days..

greets.goodju