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