This commit is contained in:
BB 2024-01-09 09:13:33 +01:00
parent a6c6fe6c28
commit 9a20368abd
2 changed files with 3 additions and 3 deletions

View File

@ -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) {

View File

@ -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>