Skip to content
Snippets Groups Projects
Commit 218bca49 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Make smartname module handle userids without @

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1341 44740490-163a-0410-bde0-09ae8108e29a
parent 482c3320
No related branches found
No related tags found
No related merge requests found
......@@ -47,6 +47,7 @@ class sspmod_smartnameattribute_Auth_Process_SmartName extends SimpleSAML_Auth_P
}
private function getLocalUser($userid) {
if (strpos($userid, '@') === FALSE) return NULL;
$decomposed = explode('@', $userid);
if(count($decomposed) === 2) {
return $decomposed[0];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment