On Fri, May 8, 2009 at 2:11 PM, Dan Sosedov <[email protected]> wrote:
>
> Hey, i have small question about authentication in merb.
>
> Everything is working fine but all the time i logging into the site ('/
> login' path) with account parameters im getting some weird parameter
> in url path. For example, 'http://localhost:4000/?
> _message=...some...data..'.
>
> What this _message variable for and how to remove or hide it ?
>
>
Hi,
This is the way merb does flash messages.
If you'd like to remove it rake the password slices stub files like this:
rake slices:merb-auth-slice-password:stubs
This will put some files into:
Merb.root/slices/merb-auth-slice-password/app/controllers/session.rb
You'll see a message attribute on a redirect. Just remove that and the
stuff in the URL will be gone.
This is the same whenever you pass a :message param to a redirect in merb.
Cheers
Daniel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---