Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
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
TeDomum
Nextcloud
Commits
53418f27
Unverified
Commit
53418f27
authored
6 years ago
by
Morris Jobke
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #12543 from nextcloud/fix/12498/bearer_tokens_are_apptokens
Bearer tokens are app token
parents
cc6c30e7
c2beb36b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/private/User/Session.php
+4
-0
4 additions, 0 deletions
lib/private/User/Session.php
with
4 additions
and
0 deletions
lib/private/User/Session.php
+
4
−
0
View file @
53418f27
...
@@ -783,6 +783,10 @@ class Session implements IUserSession, Emitter {
...
@@ -783,6 +783,10 @@ class Session implements IUserSession, Emitter {
if
(
!
$this
->
validateToken
(
$token
))
{
if
(
!
$this
->
validateToken
(
$token
))
{
return
false
;
return
false
;
}
}
// Set the session variable so we know this is an app password
$this
->
session
->
set
(
'app_password'
,
$token
);
return
true
;
return
true
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment