|
@@ -233,7 +233,7 @@ async def register_old(request: Request):
|
|
|
#return templates.TemplateResponse("make_video.html", {"request": request, "success": True},status_code=status.HTTP_302_FOUND)
|
|
|
#return templates.TemplateResponse("login.html", {'request': request,"success": True}, status_code=status.HTTP_302_FOUND)
|
|
|
else:
|
|
|
- return 'msg':{'eng':user.username+' is duplicated user name try another','zh':user.username+'重複,請更改'}}
|
|
|
+ return {'msg':{'eng':user.username+' is duplicated user name try another','zh':user.username+'重複,請更改'}}
|
|
|
|
|
|
@app.post("/register")
|
|
|
async def register(request: models.register_req):
|
|
@@ -250,7 +250,7 @@ async def register(request: models.register_req):
|
|
|
else :
|
|
|
return {'msg':'error'}
|
|
|
else:
|
|
|
- return 'msg':{'eng':user.username+' is duplicated user name try another','zh':user.username+'重複,請更改'}}
|
|
|
+ return {'msg':{'eng':user.username+' is duplicated user name try another','zh':user.username+'重複,請更改'}}
|
|
|
|
|
|
|
|
|
@app.get('/logout')
|