|
@@ -227,7 +227,7 @@ async def register(request: models.register_req):
|
|
|
user_obj = first(db.query('SELECT * FROM users where username ="'+str(request.username)+'"'))
|
|
|
|
|
|
if user_obj == None:
|
|
|
- id = user_register(user)
|
|
|
+ id = user_register(request)
|
|
|
if type(id) is int:
|
|
|
code = str(time.time()).replace('.','')
|
|
|
db['register_veri_code'].insert({'code':code,'user_id':id})
|