/lenasys/0.1

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/lenasys/0.1

« back to all changes in this revision

Viewing changes to trunk/DuggaSys/changePassword/index.php

  • Committer: Daniel Johansson
  • Date: 2013-03-28 14:01:33 UTC
  • mto: (4.7.5 GammaBear)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: maila@danieljohansson.nu-20130328140133-j2mugl3t6x25bxjc
Uppdaterat DuggaSys till att följa kodstandard utseendemässigt. Namnkonventioner kvar.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
        // echo "</pre>";
9
9
        
10
10
        //Passwordchangingcode
11
 
        if(isset($_POST['changePasswordSubmit'])){
 
11
        if(isset($_POST['changePasswordSubmit'])) {
12
12
                //////////////////////////
13
13
                $pdo = new PDO('mysql:dbname=dsystem;host=wwwlab.iki.his.se', 'dbsk', 'Tomten2009'); //ADD NEW USER WITH LESS PRIVILEGES?
14
14
        $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);
35
35
                        $updateStmt->bindParam(':LOGIN', $_POST['loginName']);
36
36
                        $updateStmt->bindParam(':SSN', $student['ssn']);
37
37
                        $updateStmt->execute();
38
 
                        if($updateStmt->execute()){
 
38
                        if($updateStmt->execute()) {
39
39
                                $errorMsg="New password stored";
40
40
                        } else {
41
41
                                $errorMsg="ERROR: Failed to change password";