Commit 420d8614fd28326b42e1d650b894674270dfaf4b
1 parent
5bd10750
Use the authentication provider's showUserSource method to display
authentication information for the user. The changing of user password has been moved to the built-in authenticaiton provider's showUserSource method. git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4191 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
11 additions
and
3 deletions
templates/ktcore/principals/edituser.smarty
| 1 | <h2>Edit User Details</h2> | 1 | <h2>Edit User Details</h2> |
| 2 | 2 | ||
| 3 | -<p class="descriptiveText"><a href="?action=setPassword&user_id={$edit_user->getId()}">Change {$edit_user->getName()}'s password</a></p> | ||
| 4 | - | ||
| 5 | <form action="{$smarty.server.PHP_SELF}" method="POST"> | 3 | <form action="{$smarty.server.PHP_SELF}" method="POST"> |
| 6 | <input type="hidden" name="action" value="saveUser" /> | 4 | <input type="hidden" name="action" value="saveUser" /> |
| 7 | <input type="hidden" name="user_id" value="{$edit_user->getId()}" /> | 5 | <input type="hidden" name="user_id" value="{$edit_user->getId()}" /> |
| @@ -17,4 +15,14 @@ | @@ -17,4 +15,14 @@ | ||
| 17 | <a href="?action=main" class="ktCancelLink">Cancel</a> | 15 | <a href="?action=main" class="ktCancelLink">Cancel</a> |
| 18 | </div> | 16 | </div> |
| 19 | </fieldset> | 17 | </fieldset> |
| 20 | - </form> | ||
| 21 | \ No newline at end of file | 18 | \ No newline at end of file |
| 19 | + </form> | ||
| 20 | + | ||
| 21 | +{assign var=provider_stuff value=$provider->showUserSource($edit_user, $source)} | ||
| 22 | +{if $provider_stuff} | ||
| 23 | +<fieldset><legend>Authentication</legend> | ||
| 24 | +<p class="descriptiveText">{$edit_user->getName()}'s authentication is | ||
| 25 | +handled by the <strong>{$provider->getName()}</strong>.</p> | ||
| 26 | +{$provider_stuff} | ||
| 27 | +</fieldset> | ||
| 28 | +{/if} | ||
| 29 | + |