Commit 23e26ad9 authored by Nigel McNie's avatar Nigel McNie
Browse files
parents 0190915c 999f5d66
......@@ -109,7 +109,11 @@ if (count($authinstances) > 1) {
'description' => get_string('remoteusernamedescription', 'admin'),
);
}
} else if (count($authinstances == 1)) {
$elements['authinstance'] = array(
'type' => 'hidden',
'value' => $authinstances[0]->id,
);
}
$elements['submit'] = array(
......
......@@ -78,15 +78,3 @@
<KEY NAME="subscruk" TYPE="unique" FIELDS="plugin,event,callfunction" />
</KEYS>
</TABLE>
<TABLE NAME="auth_remote_user">
<FIELDS>
<FIELD NAME="authinstance" TYPE="int" LENGTH="10" NOTNULL="true" />
<FIELD NAME="remoteusername" TYPE="char" LENGTH="255" NOTNULL="true" />
<FIELD NAME="localusr" TYPE="int" LENGTH="10" NOTNULL="true" />
</FIELDS>
<KEYS>
<KEY NAME="primary" TYPE="primary" FIELDS="authinstance,remoteusername" />
<KEY NAME="authinstancefk" TYPE="foreign" FIELDS="authinstance" REFTABLE="auth_instance" REFFIELDS="id" />
<KEY NAME="localusrfk" TYPE="foreign" FIELDS="localusr" REFTABLE="usr" REFFIELDS="id" />
</KEYS>
</TABLE>
......@@ -134,6 +134,18 @@
<KEY NAME="institution" TYPE="foreign" FIELDS="institution" REFTABLE="institution" REFFIELDS="name"/>
</KEYS>
</TABLE>
<TABLE NAME="auth_remote_user">
<FIELDS>
<FIELD NAME="authinstance" TYPE="int" LENGTH="10" NOTNULL="true" />
<FIELD NAME="remoteusername" TYPE="char" LENGTH="255" NOTNULL="true" />
<FIELD NAME="localusr" TYPE="int" LENGTH="10" NOTNULL="true" />
</FIELDS>
<KEYS>
<KEY NAME="primary" TYPE="primary" FIELDS="authinstance,remoteusername" />
<KEY NAME="authinstancefk" TYPE="foreign" FIELDS="authinstance" REFTABLE="auth_instance" REFFIELDS="id" />
<KEY NAME="localusrfk" TYPE="foreign" FIELDS="localusr" REFTABLE="usr" REFFIELDS="id" />
</KEYS>
</TABLE>
<TABLE NAME="sso_session">
<FIELDS>
<FIELD NAME="userid" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="false" />
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment