Commit a99ac494b998d0a31d7ded6e34e1ff44bffd46ac
1 parent
be13330d
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 | 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 | 3 | <form action="{$smarty.server.PHP_SELF}" method="POST"> |
| 6 | 4 | <input type="hidden" name="action" value="saveUser" /> |
| 7 | 5 | <input type="hidden" name="user_id" value="{$edit_user->getId()}" /> |
| ... | ... | @@ -17,4 +15,14 @@ |
| 17 | 15 | <a href="?action=main" class="ktCancelLink">Cancel</a> |
| 18 | 16 | </div> |
| 19 | 17 | </fieldset> |
| 20 | - </form> | |
| 21 | 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 | + | ... | ... |