inpho / inphosite

The InPhO API
https://inphoproject.org
15 stars 5 forks source link

login page should say something more useful when login fails #140

Closed colinallen closed 9 years ago

colinallen commented 9 years ago

add a login failure message

aishuiyer2001 commented 9 years ago

waiting for Jaimie to resolve server side issues

JaimieMurdock commented 9 years ago

Login uses repoze.who framework to process logins: http://docs.repoze.org/who/1.0/

This is the start of documentation for implementing custom authentication in Pylons: http://chrismiles.livejournal.com/26901.html

There are three levels to the authentication

  1. paste server (receives initial request)
  2. repoze.who middleware (has plugins for determining form-based vs. HTTP basic login)
  3. pylons framework (displays either the page or the login form)

inphosite/lib/auth.py has helpers for login inphosite/controllers/account.py has signin and signout who.ini has configuration info

The User objects are in ~/workspace/inpho/inpho/model/user.py which are used by the UserModelPlugin in lib/auth.py h.get_user is in inphosite/lib/helpers.py

On 08/11/2014 10:34 PM, aishuiyer2001 wrote:

waiting for Jaimie to resolve server side issues

— Reply to this email directly or view it on GitHub https://github.com/inpho/inphosite/issues/140#issuecomment-51866768.

aishuiyer2001 commented 9 years ago

fixed the issue. changes are available on my port 8087. will push the change once you confirm it.

colinallen commented 9 years ago

this change looks good to me, thanks -- can be pushed to the main site

On Sep 14, 2014, at 11:47 PM, aishuiyer2001 notifications@github.com<mailto:notifications@github.com> wrote:

fixed the issue. changes are available on my port 8087. will push the change once you confirm it.

— Reply to this email directly or view it on GitHubhttps://github.com/inpho/inphosite/issues/140#issuecomment-55550511.

aishuiyer2001 commented 9 years ago

pushed to master for reference: commit 908f292b94deadcc3ab00e4bb9fb300233bce335