changed role to su

-cant give a person 3 roles (student,super_admin,admin) because of varchar(10) given earlier
This commit is contained in:
karthikmurakonda 2022-09-06 01:59:48 +05:30
parent 244d730bdb
commit 13fa0bdcb7
2 changed files with 3 additions and 1 deletions

View File

@ -62,7 +62,7 @@ EMAIL = "email"
STUDENT = 'student' STUDENT = 'student'
ADMIN = 'admin' ADMIN = 'admin'
SUPER_ADMIN = 'super_admin' SUPER_ADMIN = 'su'
COMPANY = 'company' COMPANY = 'company'
TIER = 'tier' TIER = 'tier'
# To be Configured Properly # To be Configured Properly

View File

@ -257,6 +257,8 @@ def verify_recaptcha(request):
} }
r = rq.post('https://www.google.com/recaptcha/api/siteverify', data=data) r = rq.post('https://www.google.com/recaptcha/api/siteverify', data=data)
result = r.json() result = r.json()
if not result['success']:
logger.warning("Utils - verify_recaptcha: " + str(result))
return result['success'] return result['success']
except: except:
# get exception line number # get exception line number