default web origins
This commit is contained in:
parent
54cc095ff5
commit
fbef9f7691
1 changed files with 4 additions and 0 deletions
|
@ -267,6 +267,10 @@ module.controller('ApplicationDetailCtrl', function($scope, realm, application,
|
|||
Notifications.error("You must specify at least one redirect uri");
|
||||
} else {
|
||||
if ($scope.create) {
|
||||
if ($scope.application.webOrigins.length == 0) {
|
||||
// let rest api put in default webOrigins
|
||||
$scope.application.webOrigins = null;
|
||||
}
|
||||
Application.save({
|
||||
realm: realm.realm,
|
||||
application: ''
|
||||
|
|
Loading…
Reference in a new issue