Enables API access to /my/account for updating user account data (#31399).

Patch by Jens Krämer.


git-svn-id: http://svn.redmine.org/redmine/trunk@18257 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2019-06-16 09:34:49 +00:00
parent d16e36028f
commit 9cdd8bf039
8 changed files with 144 additions and 13 deletions

View File

@@ -382,7 +382,7 @@ class MyControllerTest < Redmine::ControllerTest
end
def test_update_account
post :account, :params => {
put :account, :params => {
:user => {
:firstname => "Joe",
:login => "root",
@@ -407,7 +407,7 @@ class MyControllerTest < Redmine::ControllerTest
def test_update_account_should_send_security_notification
ActionMailer::Base.deliveries.clear
post :account, :params => {
put :account, :params => {
:user => {
:mail => 'foobar@example.com'