Skip to content
This repository was archived by the owner on May 17, 2022. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 817fb03

Browse files
author
Omer Lachish
committedFeb 27, 2019
append slug to /verification_email endpoint when in MULTI_ORG mode
1 parent 0d76c03 commit 817fb03

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed
 

‎client/app/pages/home/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ function HomeCtrl(Events, Dashboard, Query, $http, currentUser, toastr) {
1818
});
1919

2020
this.verifyEmail = () => {
21-
$http.post('/verification_email/').success(({ message }) => {
21+
const slug = currentUser.org_slug ? `/${currentUser.org_slug}` : '';
22+
$http.post(`${slug}/verification_email/`).success(({ message }) => {
2223
toastr.success(message);
2324
});
2425
};

‎redash/handlers/authentication.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,8 @@ def session(org_slug=None):
266266
'email': current_user.email,
267267
'groups': current_user.group_ids,
268268
'permissions': current_user.permissions,
269-
'is_email_verified': current_user.is_email_verified
269+
'is_email_verified': current_user.is_email_verified,
270+
'org_slug': current_user.org.slug if settings.MULTI_ORG else None,
270271
}
271272

272273
return json_response({

0 commit comments

Comments
 (0)
This repository has been archived.