diff --git a/public/templates/login.tpl b/public/templates/login.tpl
index ec2747c468..875e4760bd 100644
--- a/public/templates/login.tpl
+++ b/public/templates/login.tpl
@@ -23,8 +23,8 @@
\ No newline at end of file
diff --git a/src/webserver.js b/src/webserver.js
index ea54ed292e..a83f292d12 100644
--- a/src/webserver.js
+++ b/src/webserver.js
@@ -122,6 +122,28 @@ var express = require('express'),
}
}
+ res.send(JSON.stringify(data));
+ break;
+ case 'register' :
+ var data = {},
+ login_strategies = auth.get_login_strategies(),
+ num_strategies = login_strategies.length;
+
+ if (num_strategies == 0) {
+ data = {
+ 'register_window:spansize': 'span12',
+ 'alternate_logins:display': 'none'
+ };
+ } else {
+ data = {
+ 'register_window:spansize': 'span6',
+ 'alternate_logins:display': 'block'
+ }
+ for (var i=0, ii=num_strategies; i