Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
3912277b
Commit
3912277b
authored
Jun 24, 2008
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Obsolete user check removed
parent
a87d90ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
22 deletions
+1
-22
java/jpwr/rt/src/RtSecurity.java
java/jpwr/rt/src/RtSecurity.java
+1
-22
No files found.
java/jpwr/rt/src/RtSecurity.java
View file @
3912277b
/*
* Proview $Id: RtSecurity.java,v 1.
2 2005-09-01 14:57:52
claes Exp $
* Proview $Id: RtSecurity.java,v 1.
3 2008-06-24 13:30:19
claes Exp $
* Copyright (C) 2005 SSAB Oxelösund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -27,25 +27,4 @@ public class RtSecurity {
public
static
native
CdhrInt
checkUser
(
String
group
,
String
user
,
String
password
);
public
static
CdhrInt
checkUser2
(
String
group
,
String
user
,
String
password
)
{
CdhrInt
cdhrInt
;
int
sts
=
1
;
int
priv
;
if
(
user
.
toUpperCase
().
equals
(
"CLAES"
)
&&
password
.
toUpperCase
().
equals
(
"HEJHOPP"
))
{
priv
=
Pwr
.
mAccess_AllPwr
;
return
new
CdhrInt
(
priv
,
sts
);
}
else
if
(
user
.
toUpperCase
().
equals
(
"SKIFTEL"
)
&&
password
.
toUpperCase
().
equals
(
"SKIFTEL"
))
{
priv
=
Pwr
.
mPrv_RtRead
|
Pwr
.
mPrv_RtWrite
;
return
new
CdhrInt
(
priv
,
sts
);
}
else
if
(
user
.
toUpperCase
().
equals
(
"OP55"
)
&&
password
.
toUpperCase
().
equals
(
"OP55"
))
{
priv
=
Pwr
.
mPrv_RtRead
|
Pwr
.
mPrv_Operator1
;
return
new
CdhrInt
(
priv
,
sts
);
}
return
new
CdhrInt
(
0
,
0
);
}
}
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