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");
|
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: ''
|
||||||
|
|
Loading…
Reference in a new issue