Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
225
Merge Requests
225
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
fff9a513
Commit
fff9a513
authored
Nov 28, 2005
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#38945
by wtanaka: made the login block redirect back to the original page.
parent
42518af2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
modules/user.module
modules/user.module
+1
-0
modules/user/user.module
modules/user/user.module
+1
-0
No files found.
modules/user.module
View file @
fff9a513
...
...
@@ -517,6 +517,7 @@ function user_block($op = 'list', $delta = 0, $edit = array()) {
case
0
:
// For usability's sake, avoid showing two login forms on one page.
if
(
!
$user
->
uid
&&
!
(
arg
(
0
)
==
'user'
&&
!
is_numeric
(
arg
(
1
))))
{
$form
[
'#action'
]
=
url
(
$_GET
[
'q'
],
drupal_get_destination
());
$form
[
'#attributes'
]
=
array
(
'id'
=>
'user-login-form'
);
$form
[
'name'
]
=
array
(
'#type'
=>
'textfield'
,
'#title'
=>
t
(
'Username'
),
'#maxlength'
=>
64
,
'#size'
=>
15
);
$form
[
'pass'
]
=
array
(
'#type'
=>
'password'
,
'#title'
=>
t
(
'Password'
),
'#maxlength'
=>
64
,
'#size'
=>
15
);
...
...
modules/user/user.module
View file @
fff9a513
...
...
@@ -517,6 +517,7 @@ function user_block($op = 'list', $delta = 0, $edit = array()) {
case
0
:
// For usability's sake, avoid showing two login forms on one page.
if
(
!
$user
->
uid
&&
!
(
arg
(
0
)
==
'user'
&&
!
is_numeric
(
arg
(
1
))))
{
$form
[
'#action'
]
=
url
(
$_GET
[
'q'
],
drupal_get_destination
());
$form
[
'#attributes'
]
=
array
(
'id'
=>
'user-login-form'
);
$form
[
'name'
]
=
array
(
'#type'
=>
'textfield'
,
'#title'
=>
t
(
'Username'
),
'#maxlength'
=>
64
,
'#size'
=>
15
);
$form
[
'pass'
]
=
array
(
'#type'
=>
'password'
,
'#title'
=>
t
(
'Password'
),
'#maxlength'
=>
64
,
'#size'
=>
15
);
...
...
Write
Preview
Markdown
is supported
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