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 @@
<button type="submit">Login</button> <button type="submit">Login</button>
</fieldset> </fieldset>
</form> </form>
<a href="reset-pw«if(data.email)»?email=«data.email»«endif»">Forgot password?</a>
</body> </body>
</html> </html>

7
static/templates/navigation.st

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

Loading…
Cancel
Save