add email and password verification to client-side vpn
This commit is contained in:
parent
693930cd7b
commit
80da8c2b4e
2
main.py
2
main.py
@ -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}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user