Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
1929d7a0
Commit
1929d7a0
authored
Jul 21, 2008
by
dkl%redhat.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 445885 â User.login should ThrowUserError when called with incorrect parameters
Patch by David Lawrence <dkl@redhat.com> - a/r=mkanat
parent
c71b9d01
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
User.pm
Bugzilla/WebService/User.pm
+10
-0
No files found.
Bugzilla/WebService/User.pm
View file @
1929d7a0
...
...
@@ -44,6 +44,12 @@ sub login {
my
(
$self
,
$params
)
=
@_
;
my
$remember
=
$params
->
{
remember
};
# Username and password params are required
foreach
my
$param
(
"login"
,
"password"
)
{
defined
$params
->
{
$param
}
||
ThrowCodeError
(
'param_required'
,
{
param
=>
$param
});
}
# Convert $remember from a boolean 0/1 value to a CGI-compatible one.
if
(
defined
(
$remember
))
{
$remember
=
$remember
?
'on'
:
''
;
...
...
@@ -287,6 +293,10 @@ The username does not exist, or the password is wrong.
The account has been disabled. A reason may be specified with the
error.
=item 50 (Param Required)
A login or password parameter was not provided.
=back
=back
...
...
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