Created
January 24, 2017 06:33
-
-
Save LuqiPan/0881da67dee615fc8011829bfa03de89 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def login(login, password): | |
# ... | |
if request.POST['VIP_KEY'] == '5fa3e7a21e34714b44720836573a71ce': | |
request.session['is_vip'] = True | |
# log_helper.log method accept | |
log_helper.log('vip_log', {'is_vip': True, 'user_id': user.id}) | |
else: | |
log_helper.log('vip_log', {'is_vip': False, 'user_id': user.id}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment