UPDATE: Adjusted underlying file system to use user-centric instead of type-centric formatting
This commit is contained in:
@@ -7,9 +7,12 @@ from utils.email import send_email
|
||||
from utils.user_utils import get_user_id
|
||||
from utils.utils import sanitize
|
||||
from secrets import token_hex
|
||||
from utils.path_manager import PathManager
|
||||
|
||||
auth_bp = Blueprint("auth", __name__)
|
||||
|
||||
path_manager = PathManager()
|
||||
|
||||
@auth_bp.route("/signup", methods=["POST"])
|
||||
@cross_origin(supports_credentials=True)
|
||||
def signup():
|
||||
@@ -90,6 +93,9 @@ def signup():
|
||||
)
|
||||
)
|
||||
|
||||
# Create user directories for stream data
|
||||
path_manager.create_user(username)
|
||||
|
||||
# Create session for new user, to avoid them having unnecessary state info
|
||||
session.clear()
|
||||
session["username"] = username
|
||||
|
||||
Reference in New Issue
Block a user