Example #1
0
def admin_access():
    r.hmset('user:%s' %ADMIN_LOGIN, {'username':ADMIN_LOGIN, 
                                     'pw_hash':generate_password_hash(ADMIN_PASSWORD), 
                                     'group_access':'2'})