Browse Source

moved forgot password? link

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
main
Stephan Richter 6 months ago
parent
commit
f18429a4b8
  1. 1
      static/templates/login.st
  2. 7
      static/templates/navigation.st

1
static/templates/login.st

@ -19,6 +19,5 @@ @@ -19,6 +19,5 @@
<button type="submit">Login</button>
</fieldset>
</form>
<a href="reset-pw«if(data.email)»?email=«data.email»«endif»">Forgot password?</a>
</body>
</html>

7
static/templates/navigation.st

@ -1,7 +1,12 @@ @@ -1,7 +1,12 @@
<nav>
«if(data.user)»<a class="button logout" href="logout" />Logout</a>«endif»
«if(data.user)»
<a class="button logout" href="logout" />Logout</a>
«endif»
<a href="index">Home</a>
<a href="admin">Administration</a>
«if(!data.user)»
<a class="button" href="reset-pw" />Forgot password?</a>
«endif»
<script type="text/javascript">
if ('«data.user.permissions»'.includes('admin')){

Loading…
Cancel
Save