[OSM-dev] Where is the code that checks if the user is logged in before serving the request?
Alexandru
icidrop at yahoo.com
Fri Nov 18 10:42:25 GMT 2011
That's very helpful! Thanks.
I looked over the code but couldn't find easily what i was looking for (i'm a java dev)...
can you give me a hint on how to make any request filtered by authorization? pls
________________________________
From: Erik Johansson <emj at kth.se>
To: Alexandru <icidrop at yahoo.com>
Cc: "dev at openstreetmap.org" <dev at openstreetmap.org>
Sent: Friday, November 18, 2011 12:25 PM
Subject: Re: [OSM-dev] Where is the code that checks if the user is logged in before serving the request?
On Fri, Nov 18, 2011 at 10:59, Alexandru <icidrop at yahoo.com> wrote:
> I want to add some more pages behind the authorization feature. Would
> someone please help me with that?
>
You might want to read up on MVC
http://www.google.com/search?q=introduction+to+MVC
And on Ruby
http://www.google.com/?q=ruby+introduction
Then take the User model and change it until it's broken, the first 20
lines in the controller are specifically interesting:
https://github.com/openstreetmap/openstreetmap-website/blob/master/app/controllers/user_controller.rb
https://github.com/openstreetmap/openstreetmap-website/blob/master/app/views/user/account.html.erb
--
/emj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20111118/08f6ac7f/attachment.html>
More information about the dev
mailing list