Spaces:
Sleeping
Sleeping
Update auth.py
Browse files
auth.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
# auth.py - COMPLETE VERSION
|
| 2 |
|
| 3 |
from flask import Blueprint, request, jsonify, session, redirect, url_for
|
| 4 |
from werkzeug.security import generate_password_hash, check_password_hash
|
|
@@ -159,7 +159,7 @@ def google_callback():
|
|
| 159 |
print(f"Error during Google OAuth: {e}")
|
| 160 |
return redirect(url_for('login_page') + '?error=exception')
|
| 161 |
|
| 162 |
-
# ============ REGISTRATION
|
| 163 |
|
| 164 |
@auth_bp.route('/api/auth/register', methods=['POST'])
|
| 165 |
def register():
|
|
|
|
| 1 |
+
# auth.py - COMPLETE VERSION
|
| 2 |
|
| 3 |
from flask import Blueprint, request, jsonify, session, redirect, url_for
|
| 4 |
from werkzeug.security import generate_password_hash, check_password_hash
|
|
|
|
| 159 |
print(f"Error during Google OAuth: {e}")
|
| 160 |
return redirect(url_for('login_page') + '?error=exception')
|
| 161 |
|
| 162 |
+
# ============ REGISTRATION ============
|
| 163 |
|
| 164 |
@auth_bp.route('/api/auth/register', methods=['POST'])
|
| 165 |
def register():
|