indiantarget / yii-user-management

0 stars 0 forks source link

Registration procedure problem. #109

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Can't do register user at all.

1.st
email while registration
registration.php

line 13
CHtml::errorSummary  use model only on first argument
http://www.yiiframework.com/doc/api/1.1/CHtml#errorSummary-detail

I think it should be

<?php.                                                                          

    echo CHtml::errorSummary($form);                                                                             
    echo CHtml::errorSummary($profile);                                                                          
?>  

2nd
registration.php:48
I do not understand the code

                elseif ($field->varname == 'email')
                {
                        //Paint it hidden or paint it like a text field, depending of the method of registration.
                        if(Yum::module()->loginType & UserModule::LOGIN_BY_EMAIL)
                                echo CHtml::activeHiddenField ($profile, 'email');
                        else
                        {
                                echo CHtml::activeLabelEx($profile, $field->varname);
                                echo CHtml::activeTextArea($profile, $field->varname, array('rows'=>6, 'cols'=>50));
                        }

why email is textArea?

and next
YumRegistrationController.php:60
if (isset($_POST['YumUser']) && isset($_POST['YumProfile'])) 

but registration form returns only 'YumUser'  and 'YumRegistrationForm'

  Get: { }
  Post:   
    YumRegistrationForm:     
      username: 'Mashastic'
      password: 'Mashastic'
      verifyPassword: 'Mashastic'
      verifyCode: 'qixeta'
    YumProfile:     
      email: 'Mashastic@ss.com'
      firstname: 'Mashastic'
      lastname: 'Mashastic'
    yt1: 'Регистрация'

Original issue reported on code.google.com by uprs...@gmail.com on 30 Jan 2011 at 8:52

GoogleCodeExporter commented 9 years ago
I am a novice at yii. So I can fatally wrong with my arguments. 8-)

Original comment by uprs...@gmail.com on 30 Jan 2011 at 8:54

GoogleCodeExporter commented 9 years ago

Original comment by thyseus on 16 Mar 2011 at 8:26