Hello,
I created a userBundle in my symfony2 project, it work good with
authentication by username.
I want to authenticate the users with the email property, and i don't
know what to change in configuration, entities to enable that.
any idéas ??
Thnaks
sorry for my bad english
--
If you wan
Hello
Thanks for your replay
I have to delete email property in user entity ??
there is not other method ??
thanks
On 31 mar, 12:59, Gareth McCumskey wrote:
> Just make your username an email address
>
> On Thu, Mar 31, 2011 at 2:26 PM, symfonyMan wrote:
>
>
>
> >
but where i have to that ?
in my entity ?
/**
* @orm:Column(type="string", name="email")
*/
private $username;
thanks
On 31 mar, 15:58, Gareth McCumskey wrote:
> No, just make the username = email
>
> On Thu, Mar 31, 2011 at 5:34 PM, symf
Thanks georg
it work now :)
On 1 avr, 11:27, georg wrote:
> You just change the return value of getUsername(). Instead of returning the
> user's name you return its email address
>
> public function getUsername() {
> return $this->email;
>
> }
--
If you want to report a vulnerability issue on
Hello,
i got this error when i try to submit my form. The CSRF token is
invalid. Please try to resubmit the form
it worked good in PR8 and when i updated to PR10 ...
thanks
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You receiv
> You must render the hiddens fields.
>
> > twig:
> >
> > {{ form_hidden(form) }}
> > .
> >
> >
>
> > 2011/4/5 symfonyMan
>
> >> Hello,
>
> >> i got this error when i try to submit my form. The CSRF token is
>
Hello,
i installed and well configured the EWZRecaptchaBundle (https://
github.com/excelwebzone/EWZRecaptchaBundle).
In my AccountBundle/Form/UserForm i added
$this->add(new RecaptchaField('recaptcha'));
In the form i see the recaptcha field good ( i can change the
image...)
but when i submit t
Hello,
i still have the same problem...
there is nobody have this bundle work good ??
thanks
On 7 avr, 13:57, symfonyMan wrote:
> Hello,
>
> i installed and well configured the EWZRecaptchaBundle (https://
> github.com/excelwebzone/EWZRecaptchaBundle).
>
> In my AccountBund
Hello,
did you find a solution for this problem ??
thanks
On 30 mar, 11:51, Manne wrote:
> I'm using the PR9 and is having the same issue.
>
> The main "issue" is really that I can't find any documentation at all
> on how to handle the submission of files through forms.
>
> Anyone that have fou
Hello,
how to get informations (email, username, TOKEN...) from session after
user authentication ??
thanks
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "s
;container->get('security.context')->getToken()
> after authentication.
> Thanks
>
> 2011/4/12 symfonyMan
>
>
>
> > Hello,
>
> > how to get informations (email, username, TOKEN...) from session after
> > user authentication ??
>
> > thanks
>
);
}
in this action i can access the user informations, but not in other
action in the same controller or not
sorry for my bad english
thanks
On 12 avr, 10:46, Alvaro Touzon wrote:
> Could you put both codes?
> thanks
>
> 2011/4/12 symfonyMan
>
>
>
> > Thanks for rep
And in the symfony profiler,
after authentication, i am redirected to account/member that print all
my infos( i see that i am authenticated) , in the changeEmail action i
am not authenticated !!
thanks
On 12 avr, 11:26, symfonyMan wrote:
> ok,
>
> in my bundle AccountBundle I
problem un security routing?
> Becose this data is in all pages after auth
> sorry for my poor english too.
> I'm spanish
> Thanks
>
> 2011/4/12 symfonyMan
>
>
>
> > And in the symfony profiler,
>
> > after authentication, i am redirected to acco
hello kassel
On 12 avr, 11:54, kassel wrote:
> Great
>
> On 12 abr, 12:50, symfonyMan wrote:
>
> > Yes,
>
> > i changed my routing and it work good.
>
> > for my secured pages i have /account/member/*, for change email
> > action i did just /change
hello,
could somebody show me an example using ajax in symfony 2 ??
thanks
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to t
Hello,
how to upload files in symfony2 ??
thanks
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to sy
r:
>
> >> public function fooAction()
> >> {
> >> // Is this an ajax request?
> >> if ($this->container->get('request')->isXmlHttpRequest())
> >> {
> >> // do stuff and return ajax con
; return new Response("There are some errors on this field");
>
> ...
>
> You must import the namespace for Response :
>
> use Symfony\Component\HttpFoundation\Response;
>
> 2011/4/15 symfonyMan
>
> > Hello,
>
> > thanks for all this respons
Hello,
In my symfony2 project i will have many routing ( /login, /account, /
group, /group/create, /user/edit ..)
how to secure all routes in my project execpt 2 or 3 route Like ( /
welcome ...)
i can do that just with the firewalls ??
Thanks
--
If you want to report a vulnerability issue
Hello,
I think that the question is in the object :)
i explain : a have 2 entities : user and groups that are associated
with ManyToMany.
It generate 3 tables in database : user, groups and
user_groups(user_id, groups_id).
my probleme is, I want to add a column in "user_groups" (type), I
don't k
in function.
>
> Also, the include of the JQuery script must go first, and your custom script
> goes after :
>
>
>
>
> And of course, anything can goes wrong with a js file, so if you don't have
> a debugger like bugzilla,
> the easiest way to get going is print
Hello,
I have a question about Security in Symfony2.
In my user entity i have a column enabled, when the user registred for the
first time I set *enabled *to *false* like the FOSUserBundle.
before validate the registration ( confirmation by email => set enabled to
true ), i can authenticate th
But in my website, the user set his password in the firt step of
registration, than i send him an email for validation
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Go
Hello,
I tried this but, it don't work as i want
http://pastebin.com/mz8Ryvir
the image file is stored in web server with the temp name and no extension
...
Thanks
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this
hello,
in PR12 the form is not merged; you still have the previous form framework
you must update your core (vendors ) if you want to use "form.factory"
the beta version is not disponible yet, it will appeard next week ( as whrot
in symfony blog
http://symfony.com/blog/a-week-of-symfony-225-1
Hello,
i try to install the EWZRecaptchaBundle in my sf2 project (latest version),
i followed the readme, but i have this error :
Fatal error: Call to undefined method
Symfony\Component\Form\Form::setScriptURLs() in
C:\www\fscv2\src\FSC\AccountBundle\Controller\UserController.php on line *
124
Hello,
a great thanks for the replay :)
in form class : i add :
$builder->add('recaptcha', 'recaptcha');
in my controller : $form = $this->get('form.factory')->create(new
RegisterType(), $user);
and i added in template :
{% form_theme form.recaptcha 'EWZRecaptchaBundle:Form:
recaptcha_widget
i know what is the problem, i had configured a virtual host in apache to use
mydomaine.com as (localhost), i must change the keys or delete the virtual
host ;)
thanks
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received th
hello,
i still have no validation for the Recaptcha field !!
there is no solution for that ?
thanks
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony
hello,
i have a big problem with forms in SF2.
In my user entity I have many properties that have @assert:NotBlank(),
RegisterType :
public function buildForm(FormBuilder $builder, array $options)
{
$builder->add('email');
$builder->add('pseudo');
$builder->add('fir
Hello Matador,
like this :
$builder->add('password','repeated', array('type'=>'password',
'first_name'=>'password', 'second_name' =>'confirm you password'));
or just like this :
$builder->add('password','repeated');
hope this help ;)
--
If you want to report a vulnerability issue on symfony
Hello,
i would like to integrate FOSFacebookBundle in my SF2 web site, i have
already my user bundle with user entity and userManager.
my problem is how to configure my security firewall ??
i have this :
providers:
in_db:
entity: { class: MyCoreBundle:User, property: email }
hello,
did you followed the doc of the Bundle ?
It works with a custom provider..
can you show me your security and custom providers configuration
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message becau
hello,
you have the FOSFacebookBundle working with facebook sdk 3.0 ??
i updated the sdk but i receive this error all time : ErrorException:
Notice: A session had already been started - ignoring session_start() in
\vendor\symfony\src\Symfony\Component\HttpFoundation\SessionStorage\NativeSession
35 matches
Mail list logo