<meta charset="UTF-8">
        <meta http-equiv="refresh" content="2, URL=premiereConnexion.php">
        <title>Cangement mot de passe.</title>
    </head>
    <body>

        <p>Les passwords sont differents!</p>

    </body>
    </html>
<?php 
} else {
    $password1 = crypt($_POST['password1'], '$2$a');
    $updatePassword = new UpdateRequest("apprenant", "password", $_SESSION['iduser'], $password1);
    $updatePassword->update();
    $updateInit = new UpdateRequest("apprenant", "init", $_SESSION['iduser'], 1);
    $updateInit->update();
    ?>
        <!doctype html>
        <html lang="fr">
        <head>
            <!-- CSS Reset -->
            <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.3/normalize.css">

            <!-- Milligram CSS minified -->
            <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/milligram/1.1.0/milligram.min.css">

            <meta http-equiv="refresh" content="1, URL=../siteform.php">
            <meta charset="UTF-8">
            <title>Changement</title>
        </head>
Exemplo n.º 2
0
 /**
  * Update the specified resource in storage.
  *
  * @return Response
  */
 public function update(UpdateRequest $request)
 {
     $asset = $this->asset->update($request->route->parameter('asset'), $request->all());
     return Redirect::route('control.asset.index')->with(['flash-type' => 'success', 'flash-message' => 'Successfully updated ' . $request->title . '!']);
 }