Posts by r. duarte • 35 points
8 posts
-
0
votes2
answers55
viewsA: GET request equivalent in separate files (controller and route)
Aaaaah! With the information you passed I made some changes and it worked! isAuth.js (middleware) module.exports = { isAuth: (req, res, next) => { if(req.isAuthenticated()) { return next(); }…
-
1
votes2
answers55
viewsQ: GET request equivalent in separate files (controller and route)
Good night! Working on a project, and on the login screen after performing the authentication (Passportjs), the user will be redirected to the home page. However, a little while ago I started to…
-
0
votes2
answers91
viewsA: Consuming webservice, login screen
// Posts app.post("/", (req, res) => { // Data from login input let user = req.body.username; let password = req.body.password; let token_jwt = ""; // Fetching data with the webserver let data =…
-
0
votes2
answers91
viewsA: Consuming webservice, login screen
Ta! I saw that everything was wrong... The post would be more or less that: app.post("/", (req, res) => { let user = req.body.username; let password = req.body.password; let token_jwt = "";…
-
0
votes2
answers91
viewsQ: Consuming webservice, login screen
Good morning! To create a project in JS, EJS and Express.js for studies, to consume a list of cars using webservice: https://carros-springboot.herokuapp.com/api/v1/carros On the login screen, using:…
-
0
votes1
answer126
viewsQ: Insert Input value as a Select Option
Good night! I’m a beginner with Vue.js, I was trying to do some tests and small projects to train and decided to make a program that simulates a Clock Point. Anyway, I ended up locking this part of…
-
0
votes2
answers70
viewsA: Add Input value as a Select Option
<!DOCTYPE html> <html lang="en" dir="ltr"> <head> <meta charset="utf-8"> <title></title> </head> <style media="screen"> .mySelect { width: 100px; }…
-
0
votes2
answers70
viewsQ: Add Input value as a Select Option
That is the scenario: <!DOCTYPE html> <html lang="en" dir="ltr"> <head> <meta charset="utf-8"> <title></title> </head> <body> <div class="">…