Spaces:
Sleeping
Sleeping
Download app/utils.py from AlejandroCalizaya/ConnectU: direct link, hf CLI and curl.
- Browser
- Download file 237 Bytes
-
https://huggingface.co/spaces/AlejandroCalizaya/ConnectU/resolve/main/app/utils.py
- Command line
-
hf download hf://spaces/AlejandroCalizaya/ConnectU/app/utils.py
-
curl -L -o utils.py https://huggingface.co/spaces/AlejandroCalizaya/ConnectU/resolve/main/app/utils.py
237 Bytes
| import random | |
| def generate_code() -> str: | |
| # Create a random 6-digit verification code: 000000 to 999999 | |
| return f"{random.randint(0, 999999):06}" | |
| def is_valid_email(email: str) -> bool: | |
| return email.endswith("@utec.edu.pe") | |