Coder Social home page Coder Social logo

knpuniversity / symfony Goto Github PK

View Code? Open in Web Editor NEW
46.0 16.0 220.0 8.8 MB

Screencast code, script and kittens behind the "Joyful Development with Symfony 3" Tutorial

Home Page: https://knpuniversity.com/tracks/symfony3#starting-in-symfony-3

License: Other

CSS 68.44% JavaScript 11.53% PHP 3.60% Twig 16.43%
knpuniversity symfony symfony-application

symfony's Introduction

Joyful Development with Symfony

Well hi there! This repository holds the code and script for the Symfony course on KnpUniversity.

Have some Ideas or Feedback?

And as always, thanks so much for your support and letting us do what we love!

If you have suggestions or questions, please feel free to open an issue or message us.

<3 Your friends at KnpUniversity

symfony's People

Contributors

adielcristo avatar akovalyov avatar billythakidd04 avatar bocharsky-bw avatar chapay avatar cmfcmf avatar lacivert avatar leannapelham avatar mollokhan avatar nmeirik avatar sadikoff avatar weaverryan avatar zorpen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

symfony's Issues

[ep6-security] [login-form-authenticator]

Hello guys.
I have reviewed this chapter and I noticed a problem.

In this section, the CSRF token is not checked and this is a serious problem.

src/AppBundle/Security/LoginFormAuthenticator.php

public function getCredentials(Request $request)
{
    $isLoginSubmit = $request->getPathInfo() == '/login' && $request->isMethod('POST');
    if (!$isLoginSubmit) {
        // skip authentication
        return;
    }
    $form = $this->formFactory->create(LoginForm::class);
    $form->handleRequest($request);
    $data = $form->getData();
    return $data;
}

And I considered the following solution for it:

    if ( $form->isSubmitted() && $form->isValid() )
    {
        $data = $form->getData();
        return $data;
    }
    throw new CustomUserMessageAuthenticationException("The CSRF token is invalid!");

I hope that this issue will be useful.

New episode 2 logo

I snuck in a new episode 2, and it needs a logo - I'm re-using the logo from somewhere else

Translating request

Hi, I am a Chinese student, and I really love your video course that I decide to translate it into Chinese. I wonder if you could give me the permission

Publish episode 2 to KnpU

The new episode 2 currently doesn't appear on KnpU.com. We need to create it and publish it. We also need to re-publish all the other episodes, so that their episode numbers get pushed back (for this, we will need to update the Current config directory on each one and then rebuild.

[ep6-security][user-plain-password]

Inside setPlainPassword(), do one more thing: $this->password = null:

If we have a change password form and if the user enters their current password with the new password - then the password will not be changed and the session and user authentication will be violated due to $password = null.

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.