Skip to content

Commit

Permalink
Merge branch 'mastser'
Browse files Browse the repository at this point in the history
mispell signup word fixed
  • Loading branch information
fazt committed Aug 24, 2022
2 parents f2ce23f + e18ce55 commit 6f67818
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/controllers/auth.controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import passport from "passport";

export const renderSignUpForm = (req, res) => res.render("auth/signup");

export const singup = async (req, res) => {
export const signup = async (req, res) => {
let errors = [];
const { name, email, password, confirm_password } = req.body;
if (password !== confirm_password) {
Expand Down
4 changes: 2 additions & 2 deletions src/routes/auth.routes.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Router } from "express";
import {
renderSignUpForm,
singup,
signup,
renderSigninForm,
signin,
logout,
Expand All @@ -12,7 +12,7 @@ const router = Router();
// Routes
router.get("/auth/signup", renderSignUpForm);

router.post("/auth/signup", singup);
router.post("/auth/signup", signup);

router.get("/auth/signin", renderSigninForm);

Expand Down

0 comments on commit 6f67818

Please sign in to comment.