Login expiration to 7 days

pull/1/head
Florian Hartwich 2017-06-11 16:54:02 +02:00
parent a354b1ddc8
commit 9c7298ddc6
2 changed files with 1 additions and 2 deletions

View File

@ -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');

View File

@ -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>