Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

https interface for user management #648

Open
wants to merge 21 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Prev Previous commit
Next Next commit
some clarifications to index.cgi
  • Loading branch information
nanda committed Mar 26, 2021
commit 3b1518d492c69930f69eeb905752a50f25a94fa5
18 changes: 11 additions & 7 deletions lighttpd/htdocs/index.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ print_user_table()
echo '<form><table>'

echo '<tr><th colspan=5>Existing users</th></tr>
<tr><th>name</th><th>valid from</th><th>valid to</th><th>status</th><th>config</th></tr>'
<tr><th>Username</th><th>Valid from</th><th>Valid to</th><th>Status</th><th>Config</th></tr>'

ovpn_listclients | tail -n +2 | while IFS=, read -r name valid_from valid_to status; do

Expand All @@ -21,24 +21,28 @@ print_user_table()
<br/><br/>
<div id="popup">
<table
<tr><th colspan=2>Change user</th></tr>
<tr><td>Username</td>
<td><input type="text" id="username" name="username"/></td>
</tr>
<tr><th colspan=2>User management</th></tr>

<tr><td>Action</td>
<td><select id="action" name="action">
<option value="del">delete</option>
<option value="add">add</option>
<option value="del">delete</option>
<option value="renew">renew</option>
</select></td>
</tr>

<tr><td>Username</td>
<td><input type="text" id="username" name="username"/></td>
</tr>

<tr><td>CA passphrase*</td>
<td><input type="password" id="capassphrase" name="capassphrase"/></td>
</tr>

<tr><td colspan=2><button type="submit" onclick="done()">Do it!</button></td></tr>
</table>
</div>
<div>* Passphrase can be found in keepassxc pwd db</div>
<div>* Global passphrase for the user management, can be found in keepassxc pwd db</div>

</form>'
}
Expand Down