Skip to content

Ukol 3 - Vojtěch Bartoš#27

Open
Barvoj wants to merge 2 commits intoczcodecamp:masterfrom
Barvoj:hw3
Open

Ukol 3 - Vojtěch Bartoš#27
Barvoj wants to merge 2 commits intoczcodecamp:masterfrom
Barvoj:hw3

Conversation

@Barvoj
Copy link
Copy Markdown

@Barvoj Barvoj commented Oct 21, 2016

No description provided.

private $password;

/**
* @Assert\NotBlank()
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nejsem si jistý, jak správně řešit tuto validaci když pro registraci chci aby to nebylo null ale pro editaci adresy to null naopak chci..

Comment thread app/config/security.yml
# The name of the route to redirect to after logging out
target: homepage

context: primary_auth
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Našel jsem si, že lze sdílet context mezi více firewally. Nelíbí se mi ale, že musím u obou konfigurovat form_login i logout a jediné v čem se vlastně liší je, že tady chybí anonymous. Lze to napsat i úsporněji?

// 2) handle the submit (will only happen on POST)
$form->handleRequest($request);
if ($form->isSubmitted() && $form->isValid()) {

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je dobře volat pokaždé persist & flush ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants