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

RecentLoginRequiredMixin tests and first pass #170

Merged
merged 6 commits into from
Apr 17, 2015

Conversation

kennethlove
Copy link
Member

Not ready to merge yet but address #138.

@kennethlove
Copy link
Member Author

OK, should be good for merging now. Check it out, @chrisjones-brack3t ?

"""
Mixin allows you to require a login to be within a number of seconds.
"""
max_last_login_delta = 1800 # Defaults to 30 minutes
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might think about adding a get method for this so that it can be overridden. Someone might want to perform some logic and set the amount of time based on that.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this case a @property could also be used, couldn't it?

@chrisjones-brack3t
Copy link
Member

👍

chrisjones-brack3t added a commit that referenced this pull request Apr 17, 2015
RecentLoginRequiredMixin tests and first pass
@chrisjones-brack3t chrisjones-brack3t merged commit 24bf321 into master Apr 17, 2015
@chrisjones-brack3t chrisjones-brack3t deleted the feature/recentloginrequiredmixin branch April 17, 2015 20:51
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.

None yet

3 participants