Did I find the right examples for you? yes no      Crawl my project      Python Jobs

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

src/x/s/xsbs-HEAD/src/pyscripts/xsbs/users/privilege.py   xsbs(Download)
def onSetMaster(cn, hash):
	if hash == sbserver.hashPassword(cn, sbserver.adminPassword()):
def onAuthSuccess(cn, name):

src/x/s/xsbs-HEAD/src/pyscripts/xsbs/users/__init__.py   xsbs(Download)
def onSetMaster(cn, givenhash):
	p = player(cn)
	adminhash = sbserver.hashPassword(cn, sbserver.adminPassword())
		na = dbmanager.query(NickAccount).filter(NickAccount.nick==p.name()).one()
		p.message(error('Multiple names linked to this account.  Contact the system administrator.'))
		nickhash = sbserver.hashPassword(cn, na.user.password)
		if givenhash == nickhash:
			login(cn, na.user)