Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
s4s
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Timo Jeremy Pinzauti (Archived)
s4s
Commits
20db9599
Commit
20db9599
authored
7 years ago
by
SIMONVOLLENDORF\Simon
Browse files
Options
Downloads
Patches
Plain Diff
no message
parent
c295e2ea
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/org/s4s/dao/RegistrationDAO.java
+3
-3
3 additions, 3 deletions
src/main/java/org/s4s/dao/RegistrationDAO.java
src/main/java/org/s4s/dao/impl/RegistrationControl.java
+1
-10
1 addition, 10 deletions
src/main/java/org/s4s/dao/impl/RegistrationControl.java
with
4 additions
and
13 deletions
src/main/java/org/s4s/dao/RegistrationDAO.java
+
3
−
3
View file @
20db9599
...
@@ -22,10 +22,10 @@ public class RegistrationDAO extends AbstractDatabaseClass {
...
@@ -22,10 +22,10 @@ public class RegistrationDAO extends AbstractDatabaseClass {
public
void
addUser
(
String
benutzer
,
String
nachname
,
String
vorname
,
java
.
util
.
Date
gebDate
,
int
fBereich
,
String
email
,
String
emailwdh
,
String
passwort
,
String
passwortWdh
)
{
public
void
addUser
(
String
benutzer
,
String
nachname
,
String
vorname
,
java
.
util
.
Date
gebDate
,
int
fBereich
,
String
email
,
String
emailwdh
,
String
passwort
,
String
passwortWdh
)
{
try
{
try
{
sql_update
=
"INSERT INTO \"ERR\".\"user\"(benutzername, nachname, vorname, geburtsdatum, fachbreichid, email, passwort)"
+
sql_update
=
"INSERT INTO \"ERR\".\"user\"(benutzername, nachname, vorname, geburtsdatum, fachbreichid, email, passwort)"
+
"VALUES("
+
benutzer
+
"
,
"
+
nachname
+
"
,
"
+
vorname
+
"
,
"
+
gebDate
+
"
,
"
+
fBereich
+
"
,
"
+
email
+
"
,
"
+
passwort
+
")"
;
"VALUES(
\'
"
+
benutzer
+
"
\', \'
"
+
nachname
+
"
\', \'
"
+
vorname
+
"
\', \'
"
+
gebDate
+
"
\', \'
"
+
fBereich
+
"
\', \'
"
+
email
+
"
\', \'
"
+
passwort
+
"
\'
)"
;
boolean
exe
=
st
.
execute
(
sql_update
);
int
exe
=
st
.
execute
Update
(
sql_update
);
if
(
!
exe
)
{
if
(
exe
<
0
)
{
throw
new
WrongInputException
(
"Wrong Input!"
);
throw
new
WrongInputException
(
"Wrong Input!"
);
}
}
...
...
This diff is collapsed.
Click to expand it.
src/main/java/org/s4s/dao/impl/RegistrationControl.java
+
1
−
10
View file @
20db9599
...
@@ -48,19 +48,9 @@ public class RegistrationControl {
...
@@ -48,19 +48,9 @@ public class RegistrationControl {
throw
new
WrongInputException
(
"Passwort entspricht nicht den Anforderungen!"
);
throw
new
WrongInputException
(
"Passwort entspricht nicht den Anforderungen!"
);
}
}
<<<<<<<
HEAD
if
(!
email
.
equals
(
emailwdh
)
&&
!
emailValidator
())
{
if
(!
email
.
equals
(
emailwdh
)
&&
!
emailValidator
())
{
throw
new
WrongInputException
(
"Email-Adressen stimmen nicht überein oder sind nicht gültig!"
);
throw
new
WrongInputException
(
"Email-Adressen stimmen nicht überein oder sind nicht gültig!"
);
=======
<<<<<<<
HEAD
=======
if
(!(
passwort
.
equals
(
data
[
5
])
||
email
.
equals
(
data
[
3
])))
{
return
false
;
>>>>>>>
a531185a6d588bdb777cb933d716155d3ba428de
}
}
>>>>>>>
efa220193da851f3b49575d9736c0d39145b79ac
if
(!
nameValidator
(
nachname
))
{
if
(!
nameValidator
(
nachname
))
{
throw
new
WrongInputException
(
"Nachname enthält ungültige Zeichen!"
);
throw
new
WrongInputException
(
"Nachname enthält ungültige Zeichen!"
);
}
}
...
@@ -79,6 +69,7 @@ public class RegistrationControl {
...
@@ -79,6 +69,7 @@ public class RegistrationControl {
regDAO
.
addUser
(
benutzer
,
nachname
,
vorname
,
gebDate
,
fBereich
,
email
,
emailwdh
,
passwort
,
passwortWdh
);
regDAO
.
addUser
(
benutzer
,
nachname
,
vorname
,
gebDate
,
fBereich
,
email
,
emailwdh
,
passwort
,
passwortWdh
);
}
}
public
static
boolean
nameValidator
(
String
toValidate
)
{
public
static
boolean
nameValidator
(
String
toValidate
)
{
//wenn Eingabe falsch -> Notification
//wenn Eingabe falsch -> Notification
...
...
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