Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admin login page #26

Closed
ErisDS opened this issue May 12, 2013 · 0 comments
Closed

Admin login page #26

ErisDS opened this issue May 12, 2013 · 0 comments
Assignees
Milestone

Comments

@ErisDS
Copy link
Member

ErisDS commented May 12, 2013

We need to convert the existing basic auth solution to be proper secure login, with a nice login screen.

The design & markup for the login screen is already done in core/test/html/login.html

For this task:

  • Setup a new route for the login page
  • Create a new view for the login page, using the existing HTML
  • Change the existing auth method to redirect to the login page, if the user is not logged in
  • Continue to use a hard-coded username and password, and verify these (plaintext) from submitting the login form.
  • Keep track of the login so we don't redirect next time
@ghost ghost assigned ErisDS May 19, 2013
@ErisDS ErisDS closed this as completed in 7066593 May 19, 2013
tegud pushed a commit to tegud/Ghost that referenced this issue Feb 24, 2014
morficus pushed a commit to morficus/Ghost that referenced this issue Sep 4, 2014
There is now a login page. Trying to access any authenticated route will redirect you to a login page if you are not logged in.
Logging in works with the same hard-coded username and password & remembers you for a session.
Logging in will redirect you to your original route.
Flashes are present although they don't really appear in the right place.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant