@@ -72,24 +72,24 @@ |
||
72 | 72 | */ |
73 | 73 | public function checkUserHash($hash, $email) |
74 | 74 | { |
75 | - $em = $this->getDoctrine()->getManager(); |
|
75 | + $em = $this->getDoctrine()->getManager(); |
|
76 | 76 | |
77 | - $user = $em->getRepository('AppBundle:User') |
|
78 | - ->findOneBy(array('email' => $email, 'hash' => $hash)); |
|
77 | + $user = $em->getRepository('AppBundle:User') |
|
78 | + ->findOneBy(array('email' => $email, 'hash' => $hash)); |
|
79 | 79 | |
80 | - if ($user) { |
|
80 | + if ($user) { |
|
81 | 81 | |
82 | - $user->setIsReg(true); |
|
83 | - $user->setHash(null); |
|
84 | - $this->addFlash('notice', 'You have successfully passed registration confirmation'); |
|
82 | + $user->setIsReg(true); |
|
83 | + $user->setHash(null); |
|
84 | + $this->addFlash('notice', 'You have successfully passed registration confirmation'); |
|
85 | 85 | |
86 | - $em->flush(); |
|
86 | + $em->flush(); |
|
87 | 87 | |
88 | - return $this->redirectToRoute('homepage'); |
|
89 | - } |
|
88 | + return $this->redirectToRoute('homepage'); |
|
89 | + } |
|
90 | 90 | |
91 | - $this->addFlash('notice', 'You haven\'t passed registration confirmation'); |
|
91 | + $this->addFlash('notice', 'You haven\'t passed registration confirmation'); |
|
92 | 92 | |
93 | - return $this->redirectToRoute('homepage'); |
|
93 | + return $this->redirectToRoute('homepage'); |
|
94 | 94 | } |
95 | 95 | } |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Created by PhpStorm. |
|
4 | - * User: device |
|
5 | - * Date: 19.03.16 |
|
6 | - * Time: 10:05 |
|
7 | - */ |
|
3 | + * Created by PhpStorm. |
|
4 | + * User: device |
|
5 | + * Date: 19.03.16 |
|
6 | + * Time: 10:05 |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | namespace AppBundle\Services; |
10 | 10 |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Created by PhpStorm. |
|
4 | - * User: device |
|
5 | - * Date: 20.03.16 |
|
6 | - * Time: 10:40 |
|
7 | - */ |
|
3 | + * Created by PhpStorm. |
|
4 | + * User: device |
|
5 | + * Date: 20.03.16 |
|
6 | + * Time: 10:40 |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | namespace AppBundle\Services; |
10 | 10 |