Did I find the right examples for you? yes no

All Samples(3)  |  Call(0)  |  Derive(0)  |  Import(3)

src/r/i/riverid-python-HEAD/api/api.py   riverid-python(Download)
# along with RiverID.  If not, see <http://www.gnu.org/licenses/>.
 
from config import INFO_URL, MAIL_FROM, NAME, SALT
from datetime import datetime
from mail import Mail
        Validator.password(password)
 
        if self.user.get(oldemail)['password'] != Secret.hash(password, SALT):
            raise RiverException(_('The password is incorrect for this user.'))
 
    def changepassword(self, email, oldpassword, newpassword):
        Validator.email(email)
        Validator.password(newpassword)
 
        if self.user.get(email)['password'] != Secret.hash(oldpassword, SALT):
            raise RiverException(_('The old password is incorrect for this user.'))
 
        self.user.update(email, password=Secret.hash(newpassword, SALT))
    def checkpassword(self, email, password):
        Validator.email(email)
        Validator.password(password)
 
        return self.user.get(email)['password'] == Secret.hash(password, SALT)

src/v/u/Vulpix-HEAD/daemons/daemons.py   Vulpix(Download)
 
from tasks import judge
from config import SALT
from config import DAEMON_PORT
 

src/v/u/Vulpix-HEAD/daemons-rq/daemons.py   Vulpix(Download)
 
from tasks import judge
from config import SALT
from config import DAEMON_PORT
 

src/d/o/dojo2py-HEAD/server/server.py   dojo2py(Download)
    def cmd_regitry(self, data):
        if data['key'] == md5(data['email']+config.SALT):
            self.client_info = dict(name=data['name'],
                                    email=data['email'],
                                    email_hash=data['email_hash'])