LoginDemo/views/home.ejs

10 lines
422 B
Plaintext

<% if (!user) { %>
<p>Willkommen! <br></p>
<p><a href="/login"><button>Email Login per Formular</button></a></p>
<p><br><a href="/auth/google"><button>Google Login</button></a></p>
<p><br><a href="/digest"><button>Digest Login</button></a></p>
<% } else { %>
<p>Hello, <%= user.username %>. View your <a href="/profile"><button>Profile</button></a>.</p>
<p><a href="/logout"><button>Log out</button></a></p>
<% } %>