Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
Weblist Frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Fachschaftsrat MatheInfo
Karaoke
Weblist Frontend
Compare revisions
8f67ce333dabcfaecdf393ca2a87c8e9cec2d7f1 to 059e1f1d123d542bc7588c3993aced45d3c38dc4
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
fachschaftsrat-mathematikinformatik/karaoke/weblist-frontend
Select target project
No results found
059e1f1d123d542bc7588c3993aced45d3c38dc4
Select Git revision
Swap
Target
fachschaftsrat-mathematikinformatik/karaoke/weblist-frontend
Select target project
fachschaftsrat-mathematikinformatik/karaoke/weblist-frontend
1 result
8f67ce333dabcfaecdf393ca2a87c8e9cec2d7f1
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
Kleiner dreher gefixed
· 289f9655
Jan Moritz Mertens
authored
11 months ago
289f9655
Merge branch 'dreher' into 'master'
· 059e1f1d
Jan Moritz Mertens
authored
11 months ago
Kleiner dreher gefixed See merge request
!8
059e1f1d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/ApiService.ts
+2
-2
2 additions, 2 deletions
src/components/ApiService.ts
with
2 additions
and
2 deletions
src/components/ApiService.ts
View file @
059e1f1d
...
@@ -39,14 +39,14 @@ export async function apiTokenGrant(client_id: string, username: string | null,
...
@@ -39,14 +39,14 @@ export async function apiTokenGrant(client_id: string, username: string | null,
const
link
=
new
URL
(
import
.
meta
.
env
.
VITE_APIADRESS
+
"
/oauth2/token
"
);
const
link
=
new
URL
(
import
.
meta
.
env
.
VITE_APIADRESS
+
"
/oauth2/token
"
);
if
(
username
!=
null
&&
password
!=
null
){
if
(
username
!=
null
&&
password
!=
null
){
return
axios
.
post
(
link
.
toString
(),
{
grant_type
:
"
client_credentials
"
,
client_id
,
username
,
password
}).
then
((
response
)
=>
{
return
axios
.
post
(
link
.
toString
(),
{
grant_type
:
"
client_credentials
"
,
client_id
,
username
,
password
}).
then
((
response
)
=>
{
mainStore
.
setUserData
(
response
.
data
.
access_token
,
response
.
data
.
token
_type
,
response
.
data
.
refresh_
token
,
true
);
mainStore
.
setUserData
(
response
.
data
.
access_token
,
response
.
data
.
refresh_
token
,
response
.
data
.
token
_type
,
true
);
return
true
;
return
true
;
}).
catch
(()
=>
{
}).
catch
(()
=>
{
return
false
;
return
false
;
})
})
}
else
{
}
else
{
return
axios
.
post
(
link
.
toString
(),
{
grant_type
:
"
client_credentials
"
,
client_id
}).
then
((
response
)
=>
{
return
axios
.
post
(
link
.
toString
(),
{
grant_type
:
"
client_credentials
"
,
client_id
}).
then
((
response
)
=>
{
mainStore
.
setUserData
(
response
.
data
.
access_token
,
response
.
data
.
token
_type
,
response
.
data
.
refresh_token
,
fals
e
);
mainStore
.
setUserData
(
response
.
data
.
access_token
,
response
.
data
.
refresh_
token
,
response
.
data
.
token_type
,
tru
e
);
return
true
;
return
true
;
}).
catch
(()
=>
{
}).
catch
(()
=>
{
return
false
;
return
false
;
...
...
This diff is collapsed.
Click to expand it.