diff --git a/www/auth/login-feide.php b/www/auth/login-feide.php
index 739fbd274d8720338caacccfac3625586602fcdf..5c73854386907a4861b76e997f7a7f5e283f8dd5 100644
--- a/www/auth/login-feide.php
+++ b/www/auth/login-feide.php
@@ -296,6 +296,11 @@ if(array_key_exists('contact', $spmetadata)) {
 } else {
 	$t->data['contact'] = NULL;
 }
+if(array_key_exists('attributes', $spmetadata)) {
+	$t->data['attrib'] = $spmetadata['attributes'];
+} else {
+	$t->data['contact'] = NULL;
+}
 
 $t->data['selectorg'] = $selectorg;
 $t->data['org'] = $org;