mirror of
https://github.com/getredash/redash.git
synced 2025-12-25 01:03:20 -05:00
append slug to /verification_email endpoint when in MULTI_ORG mode
This commit is contained in:
@@ -18,7 +18,8 @@ function HomeCtrl(Events, Dashboard, Query, $http, currentUser, toastr) {
|
||||
});
|
||||
|
||||
this.verifyEmail = () => {
|
||||
$http.post('/verification_email/').success(({ message }) => {
|
||||
const slug = currentUser.org_slug ? `/${currentUser.org_slug}` : '';
|
||||
$http.post(`${slug}/verification_email/`).success(({ message }) => {
|
||||
toastr.success(message);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -266,7 +266,8 @@ def session(org_slug=None):
|
||||
'email': current_user.email,
|
||||
'groups': current_user.group_ids,
|
||||
'permissions': current_user.permissions,
|
||||
'is_email_verified': current_user.is_email_verified
|
||||
'is_email_verified': current_user.is_email_verified,
|
||||
'org_slug': current_user.org.slug if settings.MULTI_ORG else None,
|
||||
}
|
||||
|
||||
return json_response({
|
||||
|
||||
Reference in New Issue
Block a user