Conditions | 3 |
Paths | 4 |
Total Lines | 17 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function indexActionPost() |
||
23 | { |
||
24 | $typ = $this->di->get("request")->getPost("knapp"); |
||
25 | $inloggaren = new Inloggaren($this->di); |
||
26 | |||
27 | if ($typ == "Spara nytt lösenord") { |
||
28 | $losenord = $this->di->get("request")->getPost("losenord"); |
||
29 | $inloggaren->uppdateraInlogg("losenord", MD5($losenord)); |
||
30 | } |
||
31 | |||
32 | if ($typ == "Spara ny epostadress") { |
||
33 | $epost = $this->di->get("request")->getPost("epost"); |
||
34 | $inloggaren->uppdateraInlogg("email", $epost); |
||
35 | $this->di->session->set("email", $epost); |
||
|
|||
36 | } |
||
37 | |||
38 | return $this->di->get("response")->redirect("minsida")->send(); |
||
39 | } |
||
41 |