Skip to content

vitalk/mixins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mixins

A python module that contains a useful mixins. It includes user authentication mixin and user activation mixin.

UserMixin

This class provides simple way to add authentication to base model. All password encryption and salting handles automatically via the 'password' property.

It's possible to keep password empty, this is useful if you don't manage password auth internally(maybe thought openid?). But if you try to access the password then assertion raises.

ActivationMixin

This class provides simple activation properties to base model.

Copyright

Copyright © 2012 Vital Kudzelka vital.kudzelka@gmail.com.

This code shall be used for Good, not Evil.

About

A python module that contains some useful mixins.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages