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 <[email protected]>
To: Alexandru <[email protected]>
Cc: "[email protected]" <[email protected]>
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 <[email protected]> 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
_______________________________________________
dev mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/dev