PrajapatiRaj / yii-user

Automatically exported from code.google.com/p/yii-user
0 stars 0 forks source link

Blank screen when opening changepassword as Guest #119

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. open /user/profile/changepassword as 'Guest'

What is the expected output? 
Login Screen and redirect after successful login to changepassword

What do you see instead?
a blank screen

What version of the product are you using? On what operating system?
0.3

Please provide any additional information below.
A hotfix, but without correct returl_url handling

Index: ProfileController.php
--- ProfileController.php Base (BASE)
+++ ProfileController.php Locally Modified (Based On LOCAL)
@@ -83,6 +83,8 @@
                    }
            }
            $this->render('changepassword',array('model'=>$model));
+       } else {
+           $this->redirect(Yii::app()->user->loginUrl);
\ No newline at end of file
        }
    }

Original issue reported on code.google.com by schm...@usrbin.de on 22 Nov 2011 at 2:04