Login expiration to 7 days
parent
a354b1ddc8
commit
9c7298ddc6
|
@ -50,7 +50,7 @@ let authCheck = (username, password, res) => {
|
||||||
AppUserModel.findOne({username: username}).populate('squad').exec((err, user) => {
|
AppUserModel.findOne({username: username}).populate('squad').exec((err, user) => {
|
||||||
if (err) deferred.reject(err.name + ': ' + err.message);
|
if (err) deferred.reject(err.name + ': ' + err.message);
|
||||||
|
|
||||||
const diff = 3 * 60 * 24; // time till expiration [minutes]
|
const diff = 7 * 60 * 24; // time till expiration [minutes]
|
||||||
|
|
||||||
if (user && !user.activated) {
|
if (user && !user.activated) {
|
||||||
res.status(codes.unauthorized).send('Account is not yet activated');
|
res.status(codes.unauthorized).send('Account is not yet activated');
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<div class="table-container">
|
<div class="table-container">
|
||||||
<label>Beförderungsanträge</label>
|
|
||||||
<table class="table table-hover">
|
<table class="table table-hover">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
Loading…
Reference in New Issue