forked from binarylogic/authlogic
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
By default, the cookie key should be guessed from the session klass n…
…ame instead of the klass name. So that we don't have to change cookie keys if we have multiple session models authenticating with the same model.
- Loading branch information
1 parent
233bbc3
commit 34240ff
Showing
5 changed files
with
23 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
class UserSession < Authlogic::Session::Base | ||
end | ||
end | ||
|
||
class BackOfficeUserSession < Authlogic::Session::Base | ||
authenticate_with User | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters