editUsername.php (784B)
1 <div class="container"> 2 <h1>LoginController/editUsername</h1> 3 4 <!-- echo out the system feedback (error and success messages) --> 5 <?php $this->renderFeedbackMessages(); ?> 6 7 <div class="box"> 8 <h2>Change your username</h2> 9 10 <form action="<?php echo Config::get('URL'); ?>/login/editUserName_action" method="post"> 11 <!-- btw http://stackoverflow.com/questions/774054/should-i-put-input-tag-inside-label-tag --> 12 <label> 13 New username: <input type="text" name="user_name" required /> 14 </label> 15 <!-- set CSRF token at the end of the form --> 16 <input type="hidden" name="csrf_token" value="<?= Csrf::makeToken(); ?>" /> 17 <input type="submit" value="Submit" /> 18 </form> 19 </div> 20 </div>