implemented trust option

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2024-09-24 20:59:13 +02:00
parent 3e88c91154
commit a8b476264c
11 changed files with 45 additions and 34 deletions

View File

@@ -31,7 +31,7 @@
<tr>
<td colspan="2">
<label>
<input type="checkbox" name="trust" checked="checked"/>
<input type="checkbox" id="trust" name="trust" checked="checked"/>
Quit session when browser is closed.
</label>
</td>

View File

@@ -46,6 +46,7 @@ function resetPw(){
function tryLogin(){
var username = getValue('username');
var password = getValue('password');
var trust = !get('trust').checked;
fetch(user_controller+"/login",{
method: 'POST',
headers: {
@@ -54,7 +55,8 @@ function tryLogin(){
},
body: JSON.stringify({
username : username,
password : password
password : password,
trust: trust
})
}).then(handleLogin);
return false;

View File

@@ -16,7 +16,6 @@
<li>implement token refresh</li>
<li>Verschlüsselung im config-File</li>
<li>Configuration im Frontend</li>
<li>Process <em>quit session when browser is closed</em> input on login</li>
</ul>
</div>
</body>