Browse Source

IP-508 - Password can't be changed for user accounts

Kovah 2 years ago
parent
commit
1a7333e9fb

+ 3 - 3
application/modules/users/views/form.php

@@ -82,21 +82,21 @@ $cv = $this->controller->view_data["custom_values"];
                             <?php if (!$id) { ?>
                                 <div class="form-group">
                                     <label for="user_password">
-                                        <?php _trans('verify_password'); ?>
+                                        <?php _trans('password'); ?>
                                     </label>
                                     <input type="password" name="user_password" id="user_password" class="form-control">
                                 </div>
 
                                 <div class="form-group">
                                     <label for="user_password">
-                                        <?php _trans('password'); ?>
+                                        <?php _trans('verify_password'); ?>
                                     </label>
                                     <input type="password" name="user_passwordv" id="user_passwordv"
                                            class="form-control">
                                 </div>
                             <?php } else { ?>
                                 <div class="form-group">
-                                    <a href="<?php site_url('users/change_password/' . $id) ?>" class="btn btn-default">
+                                    <a href="<?php echo site_url('users/change_password/' . $id); ?>" class="btn btn-default">
                                         <?php _trans('change_password'); ?>
                                     </a>
                                 </div>

+ 1 - 1
application/modules/users/views/form_change_password.php

@@ -1,4 +1,4 @@
-<form method="post" class="form-horizontal">
+<form method="post">
 
     <input type="hidden" name="_ip_csrf" value="<?= $this->security->get_csrf_hash() ?>">