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:
parent
244d730bdb
commit
13fa0bdcb7
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue