Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Memorekall Member New
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Rekall
Memorekall Member New
Commits
3c5e1331
Commit
3c5e1331
authored
3 years ago
by
Sebastien Curt
Browse files
Options
Downloads
Patches
Plain Diff
remove dead code
parent
e00513bf
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!8
Tuleap 40 register
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Controller/RegistrationController.php
+0
-2
0 additions, 2 deletions
src/Controller/RegistrationController.php
src/Repository/UserRepository.php
+0
-29
0 additions, 29 deletions
src/Repository/UserRepository.php
with
0 additions
and
31 deletions
src/Controller/RegistrationController.php
+
0
−
2
View file @
3c5e1331
...
@@ -65,8 +65,6 @@ class RegistrationController extends AbstractController
...
@@ -65,8 +65,6 @@ class RegistrationController extends AbstractController
// return $this->redirectToRoute('app_login');
// return $this->redirectToRoute('app_login');
$this
->
requestStack
->
getSession
()
->
set
(
'userid'
,
$user
->
getId
());
$this
->
requestStack
->
getSession
()
->
set
(
'userid'
,
$user
->
getId
());
return
$this
->
redirectToRoute
(
'app_register_mail_sent'
);
return
$this
->
redirectToRoute
(
'app_register_mail_sent'
);
// $message = 'An email has been sent to '. $user->getEmail() .'. It contains an activation link you must click to activate your account.';
// $this->addFlash('success', $message);
}
}
return
$this
->
render
(
'registration/register.html.twig'
,
[
return
$this
->
render
(
'registration/register.html.twig'
,
[
...
...
This diff is collapsed.
Click to expand it.
src/Repository/UserRepository.php
+
0
−
29
View file @
3c5e1331
...
@@ -35,33 +35,4 @@ class UserRepository extends ServiceEntityRepository implements PasswordUpgrader
...
@@ -35,33 +35,4 @@ class UserRepository extends ServiceEntityRepository implements PasswordUpgrader
$this
->
_em
->
persist
(
$user
);
$this
->
_em
->
persist
(
$user
);
$this
->
_em
->
flush
();
$this
->
_em
->
flush
();
}
}
// /**
// * @return User[] Returns an array of User objects
// */
/*
public function findByExampleField($value)
{
return $this->createQueryBuilder('u')
->andWhere('u.exampleField = :val')
->setParameter('val', $value)
->orderBy('u.id', 'ASC')
->setMaxResults(10)
->getQuery()
->getResult()
;
}
*/
/*
public function findOneBySomeField($value): ?User
{
return $this->createQueryBuilder('u')
->andWhere('u.exampleField = :val')
->setParameter('val', $value)
->getQuery()
->getOneOrNullResult()
;
}
*/
}
}
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