Permalink
Browse files

rename change_password to change_my_password

  • Loading branch information...
1 parent 635e390 commit 5490933f9cd3af1256d38df1ce8b3f02e746511c @szabgab committed Mar 11, 2012
Showing with 12 additions and 8 deletions.
  1. +4 −0 Changes
  2. +1 −1 lib/Dwimmer/Admin.pm
  3. +1 −1 lib/Dwimmer/Client.pm
  4. +2 −2 public/javascripts/dwimmer.js
  5. +2 −2 t/003_client.t
  6. +2 −2 views/layouts/main.tt
View
@@ -1,5 +1,9 @@
Changes to the Dwimmer system. See http://dwimmer.org/
+ - rename /change_password to /change_my_password
+ - fix command line adding user
+ - add command line listing all the users
+
0.26 2012.02.16
- Add minimal search capability
View
@@ -680,7 +680,7 @@ post '/set_site_config.json' => sub {
return to_json { success => 1 };
};
-post '/change_password.json' => sub {
+post '/change_my_password.json' => sub {
my %params = _clean_params(qw(new_password old_password));
return render_response 'error', { 'no_new_password' => 1 } if not $params{new_password};
return render_response 'error', { 'no_old_password' => 1 } if not $params{old_password};
View
@@ -43,7 +43,7 @@ my %GET = map { $_ => $_ } qw(
my %POST = map { $_ => $_ } qw(
add_feed
add_user
- change_password
+ change_my_password
create_feed_collector
create_list
create_site
@@ -232,7 +232,7 @@ function submit_form(obj, file) {
}
$("#add_user_form").submit(function() { return submit_form(this, 'add_user') });
- $("#change_password_form").submit(function() { return submit_form(this, 'change_password') });
+ $("#change_my_password_form").submit(function() { return submit_form(this, 'change_my_password') });
$("#create_site_form").submit(function() { return submit_form(this, 'create_site') });
$("#create_feed_collector_form").submit(function() { return submit_form(this, 'create_feed_collector') });
$("#create_list_form").submit(function() { return submit_form(this, 'create_list') });
@@ -415,7 +415,7 @@ function submit_form(obj, file) {
return false;
});
- $(".change_password").click(function(){
+ $(".change_my_password").click(function(){
manage_bar();
$('#admin-change-password').show();
return false;
View
@@ -377,7 +377,7 @@ cmp_deeply(
my $pw1 = 'qwerty';
is_deeply(
- $user->change_password( new_password => $pw1, old_password => $users[0]{password} ),
+ $user->change_my_password( new_password => $pw1, old_password => $users[0]{password} ),
{ success => 1 }, 'password changed'
);
@@ -417,7 +417,7 @@ is_deeply(
my $failed_pw = 'uiop';
is_deeply(
- $user->change_password( new_password => $failed_pw, old_password => $pw1 ),
+ $user->change_my_password( new_password => $failed_pw, old_password => $pw1 ),
{ dwimmer_version => $Dwimmer::Client::VERSION,
error => 'not_logged_in',
},
View
@@ -36,7 +36,7 @@
<li><a class="manage" href="">Manage</a>
<div class="submenu submenu_simple">
<ul>
- <li><a class="change_password" href="">change password</a></li>
+ <li><a class="change_my_password" href="">change my password</a></li>
<li><a class="list_users" href="">list users</a></li>
<li><a class="add_user" href="">add user</a></li>
<li><a class="list_pages" href="">list pages</a></li>
@@ -83,7 +83,7 @@
<div id="admin-change-password">
Change password:
- <form id="change_password_form" action="/_dwimmer/change_password.json" method="POST">
+ <form id="change_my_password_form" action="/_dwimmer/change_my_password.json" method="POST">
Old password: <input type="password" name="old_password"><br />
New password: <input type="password" name="new_password"><br />
<input type="submit" value="Change password"><br />

0 comments on commit 5490933

Please sign in to comment.