{save_sso}
Tag {save_sso} allows to save the Single Sign On applications credentials. Since version 4.4.3.
Parameters
- user - user ID who's SSO information is saved. Default value is the logged in user ID.
- fields - array of SSO data
Example
First, display the SSO applications
<form action="POST">
{init_sso name="sso_apps"}
{if $sso_apps > 0}
{********** TITLE **********}
<h1>{sysword word="applications login info" type="saurus4"}</h1>
<table>
<tr>
<td>{sysword word="application name" type="saurus4"}</td>
<td>{sysword word="username" type="saurus4"}</td>
<td>{sysword word="password" type="editor"}</td>
</tr>
{********** PRINT SSO NAMES **********}
{foreach from=$sso_apps item=sso}
<tr>
<td><input type="checkbox" name="sso[{$sso->id}][id]" value="{$sso->id}" {if $sso->user_registered == 1} checked="checked"{/if}>{$sso->app_name}</td>
<td><input type="text" name="sso[{$sso->id}][user_value]" value="{$sso->user_value}"></td>
<td><input type="password" name="sso[{$sso->id}][pwd_value]" value="{if $sso->pwd_value}******{/if}"></td>
</tr>
{/foreach}
</table>
{/if} {* SSO *}
<input type="submit" value="Save">
</form>
then save the posted values
{save_sso fields=$smarty.post.sso}
