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

Activeadmin admin#login page template should respect devise authentication_keys config #69

Merged
merged 1 commit into from
May 25, 2011

Conversation

dustMason
Copy link
Contributor

I installed activeadmin to a site where I had already implemented devise for authentication. I was getting an error because I had set my authentication key to a nondefault field ('login'):
config.authentication_keys = [ :login ]

This is a one-line change to create the login page using the authentication keys setting rather than the hardcoded 'email' field to make it easier for projects already using devise to use activeadmin.

…setting instead of assuming default of 'email'
@gregbell
Copy link
Contributor

Thanks this looks great. I'll get this merged in today.

gregbell added a commit that referenced this pull request May 25, 2011
Activeadmin admin#login page template should respect devise authentication_keys config
@gregbell gregbell merged commit 2077aa7 into activeadmin:master May 25, 2011
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

Successfully merging this pull request may close these issues.

2 participants