-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsanchez.cpp
More file actions
88 lines (75 loc) · 2.58 KB
/
sanchez.cpp
File metadata and controls
88 lines (75 loc) · 2.58 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
#include <iostream>
#include <string>
using namespace std;
void forgetPassword();
void createNewAccount();
int main() {
string user, pass, num, gmail;
int choice, subChoice;
bool loginSuccess = false;
cout << "1. Login\n2. Exist\nEnter choice 1 or 2: ";
cin >> choice;
if (choice == 1) {
cout << "\nEnter username: ";
cin >> user;
cout << "Enter password: ";
cin >> pass;
cout << "Enter number: ";
cin >> num;
cout << "Enter Gmail: ";
cin >> gmail;
if (user == "admin" && pass == "admin123" && num == "09502808811" && gmail == "clintsanchez60@gmail.com") {
cout << "\ngumagawa sya mare ko charr\n";
loginSuccess = true;
} else {
cout << "\nDILI MAO IMING PASSWORD INDAY O INDOY MALI TANAN DILI LANG PASSWORD TANGGA YARN‼️\n";
cout << "\n1. Forget password\n2. Create new account\nEnter choice: ";
cin >> subChoice;
if (subChoice == 1) {
forgetPassword();
} else if (subChoice == 2) {
createNewAccount();
} else {
cout << "Invalid choice lang yan mare!\n";
}
}
} else if (choice == 2) {
cout << "exciting na kasi pagud na sya\n";
} else {
cout << "BULUKAS AMAW OH 1 OR 2 RA NGANI BUBU YARN‼️\n";
}
return 0;
}
// mao Ning forget password nimo kay Tanga kaman bubu kaba!!
void forgetPassword() {
string regGmail;
cout << "\n--- FORGET PASSWORD ---\n";
cout << "Enter registered Gmail: ";
cin >> regGmail;
// Kani eh check ra nimo kung sakto imong tarantadung Gmail og password duh🙄//
if (regGmail == "clintsanchez60@gmail.com") {
cout << "Check mo yung Gmail mo mare!\n";
cout << "New password sent: admin456\n";
} else {
cout << "Hindi yan yung registered Gmail mo!\n";
}
}
//kung mag ilis ka og account baby ko//
void createNewAccount() {
string newUser, newPass, newNum, newGmail;
cout << "\n--- CREATE NEW ACCOUNT ---\n";
cout << "Enter new username: ";
cin >> newUser;
cout << "Enter new password: ";
cin >> newPass;
cout << "Enter new number: ";
cin >> newNum;
cout << "Enter new Gmail: ";
cin >> newGmail;
cout << "\nAccount na create mo mare!\n";
cout << "Your details:\n";
cout << "Username: " << newUser << "\n";
cout << "Number: " << newNum << "\n";
cout << "Gmail: " << newGmail << "\n";
cout << "Ingatan mo na yang account mo ha kasi Ikaw Hindi ka iningatan pok² mo kasi‼️\n";
}