File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 17
17
from events .tenant_event import tenant_was_created
18
18
from extensions .ext_database import db
19
19
from extensions .ext_redis import redis_client
20
- from libs .helper import RateLimiter , TokenManager , generate_string
20
+ from libs .helper import RateLimiter , TokenManager
21
21
from libs .passport import PassportService
22
22
from libs .password import compare_password , hash_password , valid_password
23
23
from libs .rsa import generate_key_pair
@@ -257,7 +257,7 @@ def create_account_and_tenant(
257
257
258
258
@staticmethod
259
259
def generate_account_deletion_verification_code (account : Account ) -> tuple [str , str ]:
260
- code = generate_string ( 6 )
260
+ code = "" . join ([ str ( random . randint ( 0 , 9 )) for _ in range ( 6 )] )
261
261
token = TokenManager .generate_token (
262
262
account = account , token_type = "account_deletion" , additional_data = {"code" : code }
263
263
)
You can’t perform that action at this time.
0 commit comments