-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
44 lines (21 loc) · 844 Bytes
/
main.py
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
import pyrebase
from getpass import getpass
firebaseConfig = {
"apiKey": "AIzaSyCJYc_UnQLgUGL61TSDWkYmUAiB5r7FTKA",
"authDomain": "logintokawsay.firebaseapp.com",
"databaseURL": "https://#tokawsay.firebaseio.com",
"projectId": "logintokawsay",
"storageBucket": "logintokawsay.appspot.com",
"messagingSenderId": "1078824372628",
"appId": "1:1078824372628:web:6e780d4e097852238c6781",
"measurementId": "G-771DYQDBX4"
}
firebase = pyrebase.initialize_app(firebaseConfig)
auth=firebase.auth()
email = input("Email : \n")
password = getpass("Password : \n")
user = auth.create_user_with_email_and_password(email, password)
login = auth.sign_in_with_email_and_password(email, password)
auth.send_email_verification(login['idToken'])
auth.send_password_reset_email(email)
print("Successful")