add email and password verification to client-side vpn

This commit is contained in:
arthur 2025-10-19 23:33:35 +07:00
parent 693930cd7b
commit 80da8c2b4e

View File

@ -30,7 +30,7 @@ def generate_client(request: ClientRequest):
2. Assemble the `.ovpn` file with the new certificate/key and the server's CA and TA keys. 2. Assemble the `.ovpn` file with the new certificate/key and the server's CA and TA keys.
3. Save the file to the server's client configuration directory. 3. Save the file to the server's client configuration directory.
""" """
success, message = generate_client_config(request.username) success, message = generate_client_config(request.username, request.email)
if not success: if not success:
raise HTTPException(status_code=500, detail=message) raise HTTPException(status_code=500, detail=message)
return {"message": message} return {"message": message}