Skip to content

Commit

Permalink
Merge pull request #121 from Resgrid/develop
Browse files Browse the repository at this point in the history
CU-8687yhbz5 oopsie
  • Loading branch information
ucswift authored May 17, 2024
2 parents cee446b + 4e84145 commit 21b1267
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ export class MapComponent implements OnInit {

if (!this.map) {
var osm = L.tileLayer(
this.leafletosmurl+window['rgOsmKey'],
this.leafletosmurl,
{
maxZoom: 19,
attribution: this.mapattribution,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@
window.rgApiBaseUrl = "@Resgrid.Config.SystemBehaviorConfig.ResgridApiBaseUrl";
window.rgGoogleMapsKey = "@Resgrid.Config.MappingConfig.GoogleMapsJSKey";
window.rgChannelUrl = "@Resgrid.Config.SystemBehaviorConfig.ResgridEventingBaseUrl";
window.rgOsmKey = "@Resgrid.Config.MappingConfig.OSMKey";
resgrid.absoluteBaseUrl = "@Resgrid.Config.SystemBehaviorConfig.ResgridBaseUrl";
resgrid.absoluteApiBaseUrl = "@Resgrid.Config.SystemBehaviorConfig.ResgridApiBaseUrl";
Expand Down
4 changes: 2 additions & 2 deletions Web/Resgrid.WebCore/Controllers/AccountController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ await HttpContext.SignInAsync(CookieAuthenticationDefaults.AuthenticationScheme,
[AllowAnonymous]
public IActionResult Register(string returnUrl = null)
{
if (Config.SystemBehaviorConfig.RedirectHomeToLogin)
if (String.IsNullOrWhiteSpace(SystemBehaviorConfig.BillingApiBaseUrl) || String.IsNullOrWhiteSpace(ApiConfig.BackendInternalApikey))
return RedirectToAction("LogOn", "Account");

RegisterViewModel model = new RegisterViewModel();
Expand All @@ -208,7 +208,7 @@ public IActionResult Register(string returnUrl = null)
[ValidateAntiForgeryToken]
public async Task<IActionResult> Register(RegisterViewModel model, CancellationToken cancellationToken, string returnUrl = null)
{
if (Config.SystemBehaviorConfig.RedirectHomeToLogin)
if (String.IsNullOrWhiteSpace(SystemBehaviorConfig.BillingApiBaseUrl) || String.IsNullOrWhiteSpace(ApiConfig.BackendInternalApikey))
return RedirectToAction("LogOn", "Account");


Expand Down

0 comments on commit 21b1267

Please sign in to comment.