implemented trust option
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user