Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
AURA
dashboard
Commits
c53b4541
Commit
c53b4541
authored
Apr 21, 2020
by
jackie / Andrea Ida Malkah Klaura
Browse files
remove placeholders from auth store
parent
8e8bc732
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/store/modules/auth.js
View file @
c53b4541
...
...
@@ -17,7 +17,6 @@ const oidcmgr = new oidc.UserManager({
})
const
state
=
{
items
:
[],
user
:
{
name
:
''
,
email
:
''
,
...
...
@@ -30,15 +29,11 @@ const state = {
}
const
getters
=
{
items
:
state
=>
state
.
items
,
itemCount
:
state
=>
state
.
items
.
length
,
access_token
:
state
=>
state
.
user
.
access_token
,
user
:
state
=>
state
.
user
,
}
const
mutations
=
{
addItem
(
state
,
item
)
{
state
.
items
.
push
(
item
)
},
setUserProperties
(
state
,
user
)
{
state
.
userOIDC
=
user
state
.
user
.
logged_in
=
true
...
...
@@ -70,10 +65,6 @@ const mutations = {
}
const
actions
=
{
addItem
({
commit
},
item
)
{
commit
(
'
addItem
'
,
item
)
},
fetchSteeringUser
(
ctx
)
{
axios
.
get
(
process
.
env
.
VUE_APP_API_STEERING
+
'
users/
'
,
{
withCredentials
:
true
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment