main
BB 4 months ago
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.end()
}
} else if (kind === 'Bejelentkezés') {
} else if (kind === 'Belépés') {
if (password && email) {
connection.query('SELECT * FROM accounts WHERE email = ? AND password = ?', [email, password], (error, results) => {
if (error) {

@ -34,8 +34,8 @@
<input type="password" name="password" id="password" required>
</div>
<div style="text-align: center;">
<input type="submit" name="kind" value="Regisztráció"><br/>
<input type="submit" name="kind" value="Bejelentkezés">
<input type="submit" name="kind" value="Belépés"><br/>
<input type="submit" name="kind" value="Regisztráció">
</div>
</fieldset>
</form>

Loading…
Cancel
Save