-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
executable file
·88 lines (77 loc) · 2.35 KB
/
index.php
File metadata and controls
executable file
·88 lines (77 loc) · 2.35 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?php
require_once("Authentify.php");
$test = new Authentify();
$test->enableProviders("google", "facebook", "github", "apple", "twitter");
$message = "";
if($test->runAuth()){
$id = $test->getUID();
$fname = $test->getFirstName();
$lname = $test->getLastName();
$email = $test->getUserEmail();
$img = $test->getUserPhoto();
$message = "<br>Hey, <b> $fname </b>! Your last name is <b> $lname </b> and your email is: <b>$email</b> ID: $id <br> <img src='$img'>";
}
?>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title> Login Page </title>
<style>
Body {
font-family: Calibri, Helvetica, sans-serif;
}
button {
background-color: #4CAF50;
width: 100%;
color: orange;
padding: 15px;
margin: 10px 0px;
border: none;
cursor: pointer;
}
form {
border: 3px solid #f1f1f1;
}
input[type=text], input[type=password] {
width: 100%;
margin: 8px 0;
padding: 12px 20px;
display: inline-block;
border: 2px solid green;
box-sizing: border-box;
}
button:hover {
opacity: 0.7;
}
.cancelbtn {
width: auto;
padding: 10px 18px;
margin: 10px 5px;
}
.container {
padding: 25px;
width: 50%;
background-color: lightblue;
}
</style>
</head>
<body>
<center> <h1> Authentify Login Demo </h1> </center>
<form>
<div class="container">
<?php $test->displayForm(); ?>
<!--
<label>Username : </label>
<input type="text" placeholder="Enter Username" name="username" required>
<label>Password : </label>
<input type="password" placeholder="Enter Password" name="password" required>
<button type="submit">Login</button>
<input type="checkbox" checked="checked"> Remember me
<button type="button" class="cancelbtn"> Cancel</button>
Forgot <a href="#"> password? </a> -->
<?php echo $message;?>
</div>
</form>
</body>
</html>