Coder Social home page Coder Social logo

phoenix-suns-radio's People

Contributors

steventhanna avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

phoenix-suns-radio's Issues

Change Header Padding

Change header padding-top from 100px to 75px

Chane this

.header {
  background-color: #391366;
  color: #fff;
  text-align: center;
  padding-top: 100px;
  padding-bottom: 75px;
}

to this

.header {
  background-color: #391366;
  color: #fff;
  text-align: center;
  padding-top: 75px;
  padding-bottom: 75px;
}

Create HTTP Status Pages

  • 404 Page
  • 500 Page
  • 403 Page

Maybe have some sort of basketball reference?

Put what you have created in the following files:

views/404.ejs
views/403.ejs
views/500.ejs

Login Auth

Problem with Login authentication. Signup auth seems to be working fine.

Code

This snippet resides within the AuthController.js.

login: function(req, res) {
    passport.authenticate('local', function(err, user, info) {
      if (err || (!user)) {
        console.log("user = " + user);
        console.log("err = " + err);
        console.log("info = ");
        console.log(info);

        res.send({
          success: false,
          error: true,
          errorMessage: "This user does not exist or there was some sort of error. ",
          info: info
        });
      } else if ((!err) && user) {
        req.logIn(user, function(err) {
          if (err) {
            console.log("There was an error logging the user.");
            console.log("Error = " + err);
            console.log("Error Code 0002.0");
            console.log("Users Account: ");
            console.log(user);
            res.serverError();
            return;
          } else {
            res.send({
              success: true
            });
          }
        });
      } else {
        res.send({
          success: false
        });
      }
    })(req, res);
  },

Note: It is possible that passport is trying to look for the user on the database through a username, instead of an email address. This could be the problem.

Error Message

user = false
err = null
info = 
{ message: 'Missing credentials' }

Change Password Failure

After changing the password in the settings page, no new password will work to log back in... Very strange.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.