Skip to content

Commit

Permalink
fix: dont require server config base url on login
Browse files Browse the repository at this point in the history
  • Loading branch information
BruceMacD committed Oct 6, 2022
1 parent 7d0828d commit 7b9958f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions ui/pages/login/callback.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ export default function Callback() {
router.replace(next ? decodeURIComponent(next) : '/')

window.localStorage.removeItem('next')
saveToVisitedOrgs(
window.location.host,
user?.organizationName
)
saveToVisitedOrgs(window.location.host, user?.organizationName)
}

const providerID = window.localStorage.getItem('providerID')
Expand Down
5 changes: 1 addition & 4 deletions ui/pages/login/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,7 @@ export default function Login() {

router.replace(next ? decodeURIComponent(next) : '/')

saveToVisitedOrgs(
window.location.host,
data?.organizationName
)
saveToVisitedOrgs(window.location.host, data?.organizationName)
} catch (e) {
console.error(e)
if (e.fieldErrors) {
Expand Down

0 comments on commit 7b9958f

Please sign in to comment.