Hi,
Hope someone can help.
In our production instance of our application, everything works fine when
logging in.
However, when setting up a copy of the instance on another server, I can't
login. The page is complaining that the user id (email Address) and password
are missing, when in fact, I am actually typing them in.
The form as the following:
(taken from: modules/Authentication/templates/LoginIndex.ezt)
                               <div class="field" style="margin-top:10px">
                                        <div class="userlablel">
                                                Login Email<span
class="mandatory">*</span>:
                                        </div>
                                        <div class="usertext">
                                                <input type="text"
name="emailId" id="emailId" />
                                        </div>
                                        <div class="clr"></div>
                                </div>
                                <div class="field">
                                        <div class='pwdlabel' {if
$t['PwdRequired']!=1} style="display:none"{/if}>
                                                Password<span
class="mandatory">*</span>:
                                        </div>
                                        <div class='pwdtext' {if
$t['PwdRequired']!=1} style="display:none" {/if}>
                                                <input type="password"
name="password" id="password" />
                                        </div>
                                        <div class="clr"></div>
                                </div>

The validation file contains:
(taken from: modules/Authentication/validate/Login.xml)
<?xml version="1.0" encoding="UTF-8"?>
<ae:configurations
        xmlns="http://agavi.org/agavi/config/parts/validators/1.0";
        xmlns:ae="http://agavi.org/agavi/config/global/envelope/1.0";
        parent="%core.module_dir%/Authentication/config/validators.xml"
>
        <ae:configuration>

                <validators method="write">
                        <validator class="string" name="emailId"
provides="emailId_exist" required="true">
                                <arguments>
                                        <argument>emailId</argument>
                                </arguments>
                                <errors>
                                        <error>Please enter email id</error>
                                </errors>
                        </validator>
                        <validator class="email" name="invalid_email"
 depends="emailId_exist">
                                <arguments>
                                        <argument>emailId</argument>
                                </arguments>
                                <errors>
                                        <error>Please enter a valid Email
Id</error>
                                </errors>
                        </validator>
                        <validator class="string" name="password"
provides="pass_exist" required="false">
                                <arguments>
                                        <argument>password</argument>
                                </arguments>
                                <errors>
                                        <error>Please enter password</error>
                                </errors>
                        </validator>
                        <!--  <validator class="set" name="userType"
provides="userType_exist" required="true">
                                <arguments>
                                        <argument>userType</argument>
                                </arguments>
                                <errors>
                                        <error>Please select user
type</error>
                                </errors>
                        </validator> -->
                </validators>
        </ae:configuration>
</ae:configurations>

I am going crazy trying to figure out why the validation process seems to be
null'ing out the emailId and password values. I confirmed via the
LoginActionClass.php error handler that they are empty.

Any help would be most appreciated.
Thanks.
   -Brad
_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users

Reply via email to