Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
ansaphonehandler
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Per Cederqvist
ansaphonehandler
Commits
7dd60d3d
Commit
7dd60d3d
authored
Jun 21, 2006
by
Per Cederqvist
Browse files
Options
Downloads
Patches
Plain Diff
Better handling of returning users: don't display the login page.
parent
8f44a405
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/controllers/users_controller.rb
+12
-1
12 additions, 1 deletion
app/controllers/users_controller.rb
with
12 additions
and
1 deletion
app/controllers/users_controller.rb
+
12
−
1
View file @
7dd60d3d
...
@@ -53,7 +53,18 @@ class UsersController < ApplicationController
...
@@ -53,7 +53,18 @@ class UsersController < ApplicationController
@user_pages
,
@users
=
paginate
:users
,
:per_page
=>
10
@user_pages
,
@users
=
paginate
:users
,
:per_page
=>
10
if
params
[
:id
].
nil?
if
params
[
:id
].
nil?
if
cookies
[
:user_id
].
nil?
@hide_logout
=
true
@hide_logout
=
true
else
user
=
User
.
find
(
cookies
[
:user_id
])
if
user
.
nil?
flash
.
now
[
:notice
]
=
"User id "
+
params
[
:id
]
+
" not found"
@hide_logout
=
true
else
flash
[
:notice
]
=
"Welcome back, "
+
user
.
username
redirect_to
:controller
=>
"recordings"
,
:action
=>
"list_owned"
end
end
return
return
end
end
...
...
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