+
+
$msg.get("openid.attach.title")
+#if($status && $status <= 0)
+ #if($status == -1)
+ #warning("$msg.get('openid.attach.alreadyAttachedOpenId', [$current_openid_identifier])")
+ #elseif($status == -2)
+ #error("$msg.get('openid.registration.invalidOpenID')")
+ #elseif($status == -3)
+ #error("$msg.get('openid.attach.openIdAlreadyRegistered', [$openid_identifier])")
+ #elseif($status == -4)
+ #error("$msg.get('openid.common.discovery_cancelled')")
+ #elseif($status == -5)
+ #error("$msg.get('openid.common.discovery_failed')")
+ #else
+ #error("$msg.get('openid.attach.internalError')")
+ #end
+#elseif($status && $status != 1)
+ #info("$msg.get('openid.attach.successful', [$openid_identifier, $username])")
+#end
+#if(!$status || ($status < -1))
+
$msg.get("openid.attach.welcome")
+
+#elseif($status && ($status == 1 || $status == -1))
+
$msg.get("openid.attach.confirm")
+
+#end
+
+#template("endpage.vm")
\ No newline at end of file
Index: web/standard/src/main/webapp/templates/login.vm
===================================================================
--- web/standard/src/main/webapp/templates/login.vm (revision 27623)
+++ web/standard/src/main/webapp/templates/login.vm (working copy)
@@ -47,13 +47,29 @@
+
+
$title
+#if($enabled)
+
$msg.get("openid.server.homepage.enabled_description")
+#else
+
$msg.get("openid.server.homepage.disabled_description")
+#end
+
+#template("endpage.vm")
\ No newline at end of file
Index: web/standard/src/main/webapp/templates/openid_xrds.vm
===================================================================
--- web/standard/src/main/webapp/templates/openid_xrds.vm (revision 0)
+++ web/standard/src/main/webapp/templates/openid_xrds.vm (revision 0)
@@ -0,0 +1,10 @@
+
+
+
$msg.get("openid.server.authentication_request.title")
+
$msg.get("openid.server.authentication_request.desc", [$site, $openid_identifier])
+
+
+#template("endpage.vm")
\ No newline at end of file
Index: web/standard/src/main/webapp/templates/registerinline.vm
===================================================================
--- web/standard/src/main/webapp/templates/registerinline.vm (revision 27623)
+++ web/standard/src/main/webapp/templates/registerinline.vm (working copy)
@@ -9,16 +9,22 @@
#error($msg.get('core.register.passwordMismatch'))
#elseif($reg == -3)
#error($msg.get('core.register.userAlreadyExists'))
+ #elseif($reg== -13)
+ #error("$msg.get('openid.registration.openIdAlreadyRegistered', [$openid_identifier])")
#elseif($reg == -4)
#error($msg.get('core.register.invalidUsername'))
+ #elseif($reg==-14)
+ #error("$msg.get('openid.registration.invalidOpenID')")
#elseif($reg == -8)
#error($msg.get('core.register.userAlreadyExists'))
#else
#error($msg.get('core.register.registerFailed', [$reg]))
#end
- #elseif($reg)
+ #elseif($reg && $reg != 2 && $reg != 3)
#set($xwname = "XWiki.${request.xwikiname}")
#info($msg.get('core.register.successful', [$xwiki.getUserName($xwname), $request.xwikiname]))
+ #elseif($reg && $reg == 3)
+ #info("$msg.get('openid.registration.successful', [$username, $openid_identifier])")
#end
#if(!$reg || $reg < 0)
+
$title
+
$msg.get("openid.server.user_profile.text", [$username])
+
+#template("endpage.vm")
\ No newline at end of file
Index: applications/administration/src/main/resources/XWiki/XWikiUserSheet.xml
===================================================================
--- applications/administration/src/main/resources/XWiki/XWikiUserSheet.xml (revision 27534)
+++ applications/administration/src/main/resources/XWiki/XWikiUserSheet.xml (working copy)
@@ -499,6 +499,10 @@
#end
</ul>
</div>
+ <div id="openId">
+ <span id="attachOpenId" class="hidden">$msg.get('platform.core.profile.attachOpenID')</span>
+ <a href="$doc.getURL("attachopenid")" ><img class="openid" alt="$msg.get('platform.core.profile.attachOpenID')" src="$xwiki.getSkinFile('icons/openid.png')"/></a>
+ </div>
</div>
##
## Panes
@@ -516,4 +520,4 @@
</div>
{{/html}}
{{/velocity}}
-
\ No newline at end of file
+