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
6deed741
Commit
6deed741
authored
7 years ago
by
SIMONVOLLENDORF\Simon
Browse files
Options
Downloads
Patches
Plain Diff
DB-Anbindung eingefügt
parent
ef85355a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/s4s/dao/impl/RegistrationControl.java
+12
-14
12 additions, 14 deletions
src/main/java/org/s4s/dao/impl/RegistrationControl.java
with
12 additions
and
14 deletions
src/main/java/org/s4s/dao/impl/RegistrationControl.java
+
12
−
14
View file @
6deed741
...
...
@@ -37,20 +37,23 @@ public class RegistrationControl {
email
=
data
[
2
];
passwort
=
data
[
4
];
<<<<<<<
HEAD
if
(!
nameValidator
(
nachname
))
{
=======
if
(!(
passwort
.
equals
(
data
[
5
])
||
email
.
equals
(
data
[
3
])))
{
return
false
;
}
if
(!
nameValidator
(
surname
))
{
>>>>>>>
b9c731060515564cb15c225cca74afba8238a690
if
(!
nameValidator
(
nachname
))
{
return
false
;
}
if
(!
nameValidator
(
vorname
))
{
return
false
;
}
if
(!
emailValidator
())
{
return
false
;
}
if
(!
passwordValidator
())
{
}
if
(!
passwordValidator
())
{
return
false
;
}
...
...
@@ -69,14 +72,9 @@ public class RegistrationControl {
con
=
DriverManager
.
getConnection
(
url
);
st
=
con
.
createStatement
();
//wie wird die UserID vergeben?
//benutzername soll was sein? Vorname und Nachname?
//fachbereich muss noch in View hinzugefügt werden
//adresse am besten in der DB in User hinterlegen
sql_update
=
"INSERT INTO \"ERR\".\"user\"()"
+
""
;
//erweitern
//INSERT INTO user(userID, email, passwort, nachname, vorname)
//VALUES(sq.generator.nextval, email, passwort, nachname, vorname);
sql_update
=
"INSERT INTO \"ERR\".\"user\"(email, passwort, nachname, vorname)"
+
"VALUES(email, passwort, nachname, vorname)"
;
//erweitern
st
.
executeUpdate
(
sql_update
);
...
...
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