Improve changepassword route naming
This commit is contained in:
parent
306a8681c5
commit
18da2f9cf7
|
@ -52,7 +52,7 @@ $(document).ready(function(){
|
|||
$('#passwordchanged').hide();
|
||||
$('#passworderror').hide();
|
||||
// Ajax foo
|
||||
$.post(OC.Router.generate('settings_ajax_changepersonalpassword'), post, function(data){
|
||||
$.post(OC.Router.generate('settings_personal_changepassword'), post, function(data){
|
||||
if( data.status === "success" ){
|
||||
$('#pass1').val('');
|
||||
$('#pass2').val('');
|
||||
|
|
|
@ -361,7 +361,7 @@ $(document).ready(function () {
|
|||
if ($(this).val().length > 0) {
|
||||
var recoveryPasswordVal = $('input:password[id="recoveryPassword"]').val();
|
||||
$.post(
|
||||
OC.Router.generate('settings_ajax_changepassword'),
|
||||
OC.Router.generate('settings_users_changepassword'),
|
||||
{username: uid, password: $(this).val(), recoveryPassword: recoveryPasswordVal},
|
||||
function (result) {
|
||||
if (result.status != 'success') {
|
||||
|
|
|
@ -37,13 +37,13 @@ $this->create('settings_ajax_togglesubadmins', '/settings/ajax/togglesubadmins.p
|
|||
->actionInclude('settings/ajax/togglesubadmins.php');
|
||||
$this->create('settings_ajax_removegroup', '/settings/ajax/removegroup.php')
|
||||
->actionInclude('settings/ajax/removegroup.php');
|
||||
$this->create('settings_ajax_changepassword', '/settings/users/changepassword')
|
||||
$this->create('settings_users_changepassword', '/settings/users/changepassword')
|
||||
->post()
|
||||
->action('OC\Settings\ChangePassword\Controller', 'changeUserPassword');
|
||||
$this->create('settings_ajax_changedisplayname', '/settings/ajax/changedisplayname.php')
|
||||
->actionInclude('settings/ajax/changedisplayname.php');
|
||||
// personal
|
||||
$this->create('settings_ajax_changepersonalpassword', '/settings/personal/changepassword')
|
||||
$this->create('settings_personal_changepassword', '/settings/personal/changepassword')
|
||||
->post()
|
||||
->action('OC\Settings\ChangePassword\Controller', 'changePersonalPassword');
|
||||
$this->create('settings_ajax_lostpassword', '/settings/ajax/lostpassword.php')
|
||||
|
|
Loading…
Reference in New Issue