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'
ADMIN = 'admin'
SUPER_ADMIN = 'super_admin'
SUPER_ADMIN = 'su'
COMPANY = 'company'
TIER = 'tier'
# 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)
result = r.json()
if not result['success']:
logger.warning("Utils - verify_recaptcha: " + str(result))
return result['success']
except:
# get exception line number