mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-12 23:40:04 +00:00
FS-11584: [verto_communicator] make user able to login using url params
This commit is contained in:
parent
572ce975b1
commit
85cfd5b5ab
@ -11,7 +11,18 @@
|
||||
}
|
||||
}
|
||||
preRoute();
|
||||
|
||||
|
||||
var name = $location.search().name;
|
||||
var email = $location.search().email;
|
||||
var skipPreview = $location.search().skipPreview;
|
||||
|
||||
if (name && email) {
|
||||
verto.data.name = name;
|
||||
verto.data.email = email;
|
||||
$scope.login(true, skipPreview);
|
||||
return;
|
||||
}
|
||||
|
||||
verto.data.name = $scope.storage.data.name;
|
||||
verto.data.email = $scope.storage.data.email;
|
||||
|
||||
|
@ -77,7 +77,7 @@
|
||||
* Login the user to verto server and
|
||||
* redirects him to dialpad page.
|
||||
*/
|
||||
$scope.login = function(redirect) {
|
||||
$rootScope.login = function(redirect, skipPreview = false) {
|
||||
if(redirect == undefined) {
|
||||
redirect = true;
|
||||
}
|
||||
@ -97,7 +97,7 @@
|
||||
verto.testSpeed();
|
||||
}
|
||||
|
||||
if (redirect && storage.data.preview) {
|
||||
if (redirect && storage.data.preview && !skipPreview) {
|
||||
$location.path('/loading');
|
||||
} else if (redirect) {
|
||||
$location.path('/dialpad');
|
||||
|
Loading…
x
Reference in New Issue
Block a user