default web origins

This commit is contained in:
Bill Burke 2014-05-23 16:15:00 -04:00
parent 54cc095ff5
commit fbef9f7691

View file

@ -267,6 +267,10 @@ module.controller('ApplicationDetailCtrl', function($scope, realm, application,
Notifications.error("You must specify at least one redirect uri"); Notifications.error("You must specify at least one redirect uri");
} else { } else {
if ($scope.create) { if ($scope.create) {
if ($scope.application.webOrigins.length == 0) {
// let rest api put in default webOrigins
$scope.application.webOrigins = null;
}
Application.save({ Application.save({
realm: realm.realm, realm: realm.realm,
application: '' application: ''