FINERACT-2185: User management improvement
This commit is contained in:
committed by
Adam Saghy
parent
8d83b5547c
commit
79c006774e
@@ -191,4 +191,5 @@
|
||||
<include file="parts/0170_days_in_year_custom_strategy.xml" relativeToChangelogFile="true"/>
|
||||
<include file="parts/0171_loan_capitalized_income.xml" relativeToChangelogFile="true"/>
|
||||
<include file="parts/0172_create_loan_capitalized_income_balance.xml" relativeToChangelogFile="true"/>
|
||||
<include file="parts/0173_user_change_pwd.xml" relativeToChangelogFile="true" />
|
||||
</databaseChangeLog>
|
||||
|
||||
+9
@@ -89,4 +89,13 @@
|
||||
<column name="can_maker_checker" valueBoolean="false"/>
|
||||
</insert>
|
||||
</changeSet>
|
||||
<changeSet author="fineract" id="3">
|
||||
<insert tableName="m_permission">
|
||||
<column name="grouping" value="portfolio"/>
|
||||
<column name="code" value="DEACTIVATEOVERDUE_LOANCHARGE"/>
|
||||
<column name="entity_name" value="LOANCHARGE"/>
|
||||
<column name="action_name" value="DEACTIVATEOVERDUE"/>
|
||||
<column name="can_maker_checker" valueBoolean="false"/>
|
||||
</insert>
|
||||
</changeSet>
|
||||
</databaseChangeLog>
|
||||
|
||||
+53
@@ -0,0 +1,53 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
|
||||
Licensed to the Apache Software Foundation (ASF) under one
|
||||
or more contributor license agreements. See the NOTICE file
|
||||
distributed with this work for additional information
|
||||
regarding copyright ownership. The ASF licenses this file
|
||||
to you under the Apache License, Version 2.0 (the
|
||||
"License"); you may not use this file except in compliance
|
||||
with the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing,
|
||||
software distributed under the License is distributed on an
|
||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, either express or implied. See the License for the
|
||||
specific language governing permissions and limitations
|
||||
under the License.
|
||||
|
||||
-->
|
||||
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.1.xsd">
|
||||
<changeSet author="fineract" id="1">
|
||||
<addColumn tableName="m_portfolio_command_source">
|
||||
<column name="is_sanitized" type="boolean" defaultValueBoolean="false" >
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
</addColumn>
|
||||
</changeSet>
|
||||
<changeSet author="fineract" id="2">
|
||||
<insert tableName="m_permission">
|
||||
<column name="grouping" value="authorisation"/>
|
||||
<column name="code" value="CHANGEPWD_USER"/>
|
||||
<column name="entity_name" value="USER"/>
|
||||
<column name="action_name" value="CHANGEPWD"/>
|
||||
<column name="can_maker_checker" valueBoolean="false"/>
|
||||
</insert>
|
||||
</changeSet>
|
||||
<changeSet author="fineract" id="3">
|
||||
<sql>
|
||||
INSERT INTO m_role_permission (role_id, permission_id)
|
||||
SELECT mrp.role_id, mp_changepwd.id
|
||||
FROM m_role_permission mrp
|
||||
LEFT JOIN m_permission mp_update ON mp_update.id = mrp.permission_id
|
||||
LEFT JOIN m_permission mp_changepwd ON mp_changepwd.action_name = 'CHANGEPWD'
|
||||
AND mp_changepwd.entity_name = 'USER'
|
||||
WHERE mp_update.action_name = 'UPDATE'
|
||||
AND mp_update.entity_name = 'USER';
|
||||
</sql>
|
||||
</changeSet>
|
||||
</databaseChangeLog>
|
||||
@@ -39423,6 +39423,40 @@ Request body:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<a id="users_changepwd" name="users_changepwd" class="old-syle-anchor"> </a>
|
||||
<div class="method-section">
|
||||
<div class="method-description">
|
||||
<h4>Change the password of a User</h4>
|
||||
<p>
|
||||
<b>Note:</b> When updating a password you must provide the
|
||||
repeatPassword parameter also.
|
||||
</p>
|
||||
</div>
|
||||
<div class="method-example">
|
||||
<code class="method-declaration">
|
||||
POST https://DomainName/api/v1/users/{userId)/pwd
|
||||
</code>
|
||||
<code class="method-request">
|
||||
POST users/3/pwd
|
||||
Content-Type: application/json
|
||||
Request body:
|
||||
{
|
||||
"password": "window75",
|
||||
"repeatPassword": "window75"
|
||||
}
|
||||
</code>
|
||||
<code class="method-response">
|
||||
{
|
||||
"officeId": 1,
|
||||
"resourceId": 3,
|
||||
"changes": {
|
||||
"passwordEncoded": "abc3326b1bb376351c7baeb4175f5e0504e33aadf6a158474a6d71de1befae51"
|
||||
}
|
||||
}
|
||||
</code>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<a id="users_update" name="users_update" class="old-syle-anchor"> </a>
|
||||
<div class="method-section">
|
||||
<div class="method-description">
|
||||
@@ -39451,8 +39485,7 @@ Request body:
|
||||
"officeId": 1,
|
||||
"resourceId": 3,
|
||||
"changes": {
|
||||
"firstname": "Test",
|
||||
"passwordEncoded": "abc3326b1bb376351c7baeb4175f5e0504e33aadf6a158474a6d71de1befae51"
|
||||
"firstname": "Test"
|
||||
}
|
||||
}
|
||||
</code>
|
||||
|
||||
Reference in New Issue
Block a user