Skip to content

Commit

Permalink
Verification code revision
Browse files Browse the repository at this point in the history
  • Loading branch information
na-stewart committed Jun 23, 2024
1 parent f405f72 commit e9f1d46
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sanic_security/utils.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import datetime
import random
import string

from sanic.request import Request
from sanic.response import json as sanic_json, HTTPResponse


"""
Copyright (c) 2020-Present Nicholas Aidan Stewart
Expand Down Expand Up @@ -49,7 +47,7 @@ def get_code() -> str:
Returns:
code
"""
return "".join(random.choices(string.digits + string.ascii_uppercase, k=6))
return str(random.randint(100000, 999999))


def json(
Expand Down

0 comments on commit e9f1d46

Please sign in to comment.