Remove legacy test auth client type

This commit is contained in:
Johannes Zellner
2015-10-16 10:05:58 +02:00
parent 8f203b07a1
commit 22402d1741
4 changed files with 1 additions and 16 deletions

View File

@@ -207,7 +207,6 @@ function loginForm(req, res) {
switch (result.type) {
case clientdb.TYPE_ADMIN: return render(constants.ADMIN_NAME, '/api/v1/cloudron/avatar');
case clientdb.TYPE_TEST: return render(constants.TEST_NAME, '/api/v1/cloudron/avatar');
case clientdb.TYPE_EXTERNAL: return render('External Application', '/api/v1/cloudron/avatar');
default: break;
}
@@ -375,7 +374,6 @@ var authorization = [
// TODO find a smarter way to test these
if (appId === constants.ADMIN_CLIENT_ID) return next();
if (appId === constants.TEST_CLIENT_ID) return next();
if (appId.indexOf('external-') === 0) return next();
if (appId.indexOf('addon-oauth-') === 0) appId = appId.slice('addon-oauth-'.length);
if (appId.indexOf('proxy-') === 0) appId = appId.slice('proxy-'.length);