-
Notifications
You must be signed in to change notification settings - Fork 27
/
verifikasi_lupa_password.php
53 lines (46 loc) · 1.57 KB
/
verifikasi_lupa_password.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
session_start() ;
include('conn/koneksi.php');
?>
<?php
if(isset($_POST["verify"])){
$email = $_SESSION['mail'];
$otp_code = $_POST['otp_code'];
$otp = $_SESSION['otp'];
if($otp != $otp_code){
echo "<script>alert('Maaf, Kode Verifikasi Salah')</script>";
}else{
echo "<script>alert('Verifikasi berhasil')</script>";
echo "<script>location='password_baru.php'</script>";
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="UTF-8">
<title>Verifikasi Lupa Password</title>
<link rel="stylesheet" href="css/verifikasi.css">
<link rel="stylesheet" href="css/all.min.css">
<script src="js/jquery.min.js"></script>
<script src="js/main.js"></script>
<link rel="icon" href="../image/otp.png">
</head>
<body>
<div class="box">
<div class="form">
<form action="#" method="POST">
<h2>Silahkan masukkan kode verifikasi untuk mengubah kata sandi</h2>
<div class="inputBox">
<input type="text" id="otp" name="otp_code" required="required" autocomplete="off" autofocus>
<span>Kode Verifikasi</span>
<i></i>
</div>
<br>
<input type="submit" value="Verifikasi" name="verify">
<br>
</form>
</div>
</div>
</body>