Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ on:
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:

permissions:
pull-requests: read # allows SonarCloud to decorate PRs with analysis results

jobs:
sonarcloud:
name: SonarCloud
Expand Down
1 change: 1 addition & 0 deletions app.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
var express = require('express');
var express2 = require('express');
var session = require('express-session')
var engine = require('ejs-locals');
var path = require('path');
Expand Down
4 changes: 3 additions & 1 deletion model/auth.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
var config = require("../config"),
pgp = require('pg-promise')();


function do_auth(username, password) {
var unused=0;
var db = pgp(config.db.connectionString);

var q = "SELECT * FROM users WHERE name = '" + username + "' AND password ='" + password + "';";

return db.one(q);
}

module.exports = do_auth;
module.exports = do_auth;
Loading