Skip to content

Commit e56d12a

Browse files
author
Ansari Majid Ali
committed
Fix Student Login Error
1 parent 811cce0 commit e56d12a

File tree

5 files changed

+3
-3
lines changed

5 files changed

+3
-3
lines changed

college_management_system/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
DEBUG = True
3030

3131
# ALLOWED_HOSTS = ['smswithdjango.herokuapp.com']
32-
ALLOWED_HOSTS = ['sigce-college-portal.up.railway.app','collegeportal.tk','sigce.ml'] # Not recommended but useful in dev mode
32+
ALLOWED_HOSTS = ['*'] # Not recommended but useful in dev mode
3333

3434

3535
# Application definition

db.sqlite3

0 Bytes
Binary file not shown.

main_app/templates/main_app/login.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
</div>
6666
</div>
6767
<div class="input-group mb-3">
68-
<div class="g-recaptcha" data-sitekey="6LfHPwojAAAAAAmIefBYBh_y9qTAmKrzIXWF_6FZ"></div>
68+
<div class="g-recaptcha" data-sitekey="6LfTGD4qAAAAAJLKy1TGJY7uuTh_T1cB5VikRWjF"></div>
6969

7070
</div>
7171
<div class="row">

main_app/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def doLogin(request, **kwargs):
3030
#Google recaptcha
3131
captcha_token = request.POST.get('g-recaptcha-response')
3232
captcha_url = "https://www.google.com/recaptcha/api/siteverify"
33-
captcha_key = "6LfHPwojAAAAAAtIjbi-7_N4fNf7Wp0LUiYlCDw_"
33+
captcha_key = "6LfTGD4qAAAAALtlli02bIM2MGi_V0cUYrmzGEGd"
3434
data = {
3535
'secret': captcha_key,
3636
'response': captcha_token

media/86536394.jpeg

20.8 KB
Loading

0 commit comments

Comments
 (0)