-
Notifications
You must be signed in to change notification settings - Fork 0
/
stuff.js
63 lines (49 loc) · 1.87 KB
/
stuff.js
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
//Firebase Config********************************
//Register.js *************************************
const register = async () => {
try {
const user = await createUserWithEmailAndPassword(
auth,
registerEmail,
registerPassword
);
console.log(user);
} catch (error) {
console.log(error.message);
}
}
//Register.js*********************************
<h1>Register</h1>
<input type="text"
placeholder="E-Mail"
onChange={(event) => {
setRegisterEmail(event.target.value);
}} />
<input type="text"
placeholder="Password"
onChange={(event) => {
setRegisterPassword(event.target.value);
}}
/>
<Button variant="primary" onClick={register}>Register</Button>
// App.js *****************************************
<Router>
<Routes>
<Route path="components/Login.js" element={<Login />} />
<Route path="components/Register.js" element={<Register />} />
<Route path="components/Mail.js" element={<Mail />} />
<Route path="components/New_password.js" element={<New_password />} />
</Routes>
<div cmssName="w-100 text-center mt-2">
Möchten Sie sich registrieren? <Link to="components/Register.js">Registrieren</Link>
</div>
<div className="w-100 text-center mt-2">
Sie haben bereits ein Konto? <Link to="components/Login.js">Einloggen</Link>
</div>
<div className="w-100 text-center mt-2">
Registrierung per Mail <Link to="components/Mail.js">Per Mail</Link>
</div>
<div className="w-100 text-center mt-2">
Neues Passwort <Link to="components/New_password.js">Neu</Link>
</div>
</Router>