diff options
Diffstat (limited to 'views/partials/signin.ejs')
| -rw-r--r-- | views/partials/signin.ejs | 32 |
1 files changed, 22 insertions, 10 deletions
diff --git a/views/partials/signin.ejs b/views/partials/signin.ejs index a9a2bba..c285811 100644 --- a/views/partials/signin.ejs +++ b/views/partials/signin.ejs @@ -1,24 +1,31 @@ <div class="mediaDrawer fixed animate signin"> <span class="close">X</span> <div class="box"> - <form id="signIn"> + <form id="signIn" method="post"> + <input type="hidden" name="_csrf" value="[[- token ]]"> <a href="/auth/facebook" class="facebook"><b class="icon-social-facebook"></b><span>Sign in with Facebook</span></a> <b class="info">– or the ol' fashion way –</b> <li> <label class="description" for="usernameInput">Username:</label> <div> - <input id="usernameInput" name="usernameInput" class="element text medium" type="text" maxlength="255" value=""/> + <input id="usernameInput" name="username" class="element text medium" type="text" maxlength="255" value=""/> </div> </li> <li> <label class="description" for="passwordInput">Password:</label> <div> - <input id="passwordInput" name="passwordInput" class="element text medium" type="password" maxlength="255" value=""/> + <input id="passwordInput" name="password" class="element text medium" type="password" maxlength="255" value=""/> </div> </li> <li class="buttons"> - <input id="saveForm" class="button_text" type="submit" name="submit" value="Submit" /> + <input id="saveForm" class="button_text" type="submit" value="Submit" /> </li> + <div class="errors"> + <div>There was a problem with your submission:</div> + <div class="errorList"></div> + </div> + <br><br> + <a data-role="show-signup-modal" href="#">Make a new account</a> </form> </div> </div> @@ -26,36 +33,41 @@ <div class="mediaDrawer fixed animate signup"> <span class="close">X</span> <div class="box"> - <form id="signUp"> + <form id="signUp" method="post"> + <input type="hidden" name="_csrf" value="[[- token ]]"> <a href="/auth/facebook" class="facebook"><b class="icon-social-facebook"></b><span>Sign up with Facebook</span></a> <b class="info">– or the ol' fashion way –</b> <li> <label class="description" for="usernameInput">Username:</label> <div> - <input id="usernameInput" name="usernameInput" class="element text medium" type="text" maxlength="255" value=""/> + <input id="usernameInput" name="username" class="element text medium" type="text" maxlength="255"> </div> </li> <li> <label class="description" for="emailInput">Email:</label> <div> - <input id="emailInput" name="emailInput" class="element text medium" type="text" maxlength="255" value=""/> + <input id="emailInput" name="email" class="element text medium" type="text" maxlength="255"> </div> </li> <li> <label class="description" for="passwordInput1">Password:</label> <div> - <input id="passwordInput1" name="passwordInput1" class="element text medium" type="password" maxlength="255" value=""/> + <input id="passwordInput1" name="password" class="element text medium" type="password" maxlength="255"> </div> </li> <li> <label class="description" for="passwordInput2">Again!</label> <div> - <input id="passwordInput2" name="passwordInput2" class="element text medium" type="password" maxlength="255" value=""/> + <input id="passwordInput2" class="element text medium" type="password" maxlength="255"> </div> </li> <li class="buttons"> - <input id="saveForm" class="button_text" type="submit" name="submit" value="Submit" /> + <input id="saveForm" class="button_text" type="submit" value="Submit" /> </li> + <div class="errors"> + <div>There was a problem with your submission:</div> + <div class="errorList"></div> + </div> </form> </div> </div> |
