Skip to content

Commit

Permalink
[Impersonation] cookie path set to root(/) fix coding-blocks#46
Browse files Browse the repository at this point in the history
  • Loading branch information
jugshaurya committed May 21, 2020
1 parent 0ebb024 commit c3ac9fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/modals/Impersonate/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const Impersonate = ({ onClose }) => {

const handleImpersonate = () => {
const user_id = user.id;
document.cookie = `iuid=${user_id}`;
document.cookie = `iuid=${user_id};path=/`;
window.location = router.pathname;
};

Expand All @@ -20,7 +20,7 @@ const Impersonate = ({ onClose }) => {
<ModalBody>
<Form className="row">
<Form.Group className="has-float-label mb-4 col-12">
<Form.Label>Impersonate</Form.Label>
<Form.Label>User</Form.Label>
<UserSelect
name="User"
placeholder="User"
Expand Down
2 changes: 1 addition & 1 deletion app/styles/_gogo.style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3998,7 +3998,7 @@ select.form-control:not([size]):not([multiple]) {
.react-select__value-container {
outline: initial !important;
box-shadow: none !important;
padding: 0.45rem 0.75rem 0.4rem 0.75rem !important;
padding: 0.45rem 0.75rem 0.9rem 0.75rem !important;
background: $foreground-color !important;
}

Expand Down

0 comments on commit c3ac9fb

Please sign in to comment.