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'
|
||||
ADMIN = 'admin'
|
||||
SUPER_ADMIN = 'super_admin'
|
||||
SUPER_ADMIN = 'su'
|
||||
COMPANY = 'company'
|
||||
TIER = 'tier'
|
||||
# To be Configured Properly
|
||||
|
|
|
@ -257,6 +257,8 @@ def verify_recaptcha(request):
|
|||
}
|
||||
r = rq.post('https://www.google.com/recaptcha/api/siteverify', data=data)
|
||||
result = r.json()
|
||||
if not result['success']:
|
||||
logger.warning("Utils - verify_recaptcha: " + str(result))
|
||||
return result['success']
|
||||
except:
|
||||
# get exception line number
|
||||
|
|
Loading…
Reference in New Issue