yeah
This commit is contained in:
parent
a6c6fe6c28
commit
9a20368abd
|
@ -80,7 +80,7 @@ app.post('/login', function(req, res) {
|
||||||
res.send(handlebars.compile(fs.readFileSync(path.join(dynPath, 'error.hbs'), 'utf8'))({ error: 'Adjon meg egy felhasználónevet, email-t és jelszavat' }))
|
res.send(handlebars.compile(fs.readFileSync(path.join(dynPath, 'error.hbs'), 'utf8'))({ error: 'Adjon meg egy felhasználónevet, email-t és jelszavat' }))
|
||||||
res.end()
|
res.end()
|
||||||
}
|
}
|
||||||
} else if (kind === 'Bejelentkezés') {
|
} else if (kind === 'Belépés') {
|
||||||
if (password && email) {
|
if (password && email) {
|
||||||
connection.query('SELECT * FROM accounts WHERE email = ? AND password = ?', [email, password], (error, results) => {
|
connection.query('SELECT * FROM accounts WHERE email = ? AND password = ?', [email, password], (error, results) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
|
|
|
@ -34,8 +34,8 @@
|
||||||
<input type="password" name="password" id="password" required>
|
<input type="password" name="password" id="password" required>
|
||||||
</div>
|
</div>
|
||||||
<div style="text-align: center;">
|
<div style="text-align: center;">
|
||||||
<input type="submit" name="kind" value="Regisztráció"><br/>
|
<input type="submit" name="kind" value="Belépés"><br/>
|
||||||
<input type="submit" name="kind" value="Bejelentkezés">
|
<input type="submit" name="kind" value="Regisztráció">
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user