@@ -245,7 +245,7 @@ public function index($user_id = 0)
245245 // Add some filters
246246 $ post ->pre_filter ('trim ' , TRUE );
247247
248- $ post ->add_rules ('password ' ,'required ' , 'length[ ' .kohana::config ('auth.password_length ' ).'] ' , ' alpha_dash ' );
248+ $ post ->add_rules ('password ' ,'required ' , 'length[ ' .kohana::config ('auth.password_length ' ).'] ' );
249249 $ post ->add_rules ('name ' ,'required ' ,'length[3,100] ' );
250250 $ post ->add_rules ('email ' ,'required ' ,'email ' ,'length[4,64] ' );
251251 $ post ->add_callbacks ('username ' , array ($ this ,'username_exists_chk ' ));
@@ -255,7 +255,7 @@ public function index($user_id = 0)
255255 if ( ! empty ($ post ->password ))
256256 {
257257 $ post ->add_rules ('password ' ,'required ' ,'length[ ' .kohana::config ('auth.password_length ' ).'] '
258- ,'alpha_dash ' , ' matches[password_again] ' );
258+ ,'matches[password_again] ' );
259259 }
260260 //pass the post object to any plugins that care to know.
261261 Event::run ('ushahidi_action.users_add_login_form ' , $ post );
@@ -389,8 +389,8 @@ public function index($user_id = 0)
389389 $ post ->pre_filter ('trim ' , TRUE );
390390 $ post ->add_rules ('token ' ,'required ' );
391391 $ post ->add_rules ('changeid ' ,'required ' );
392- $ post ->add_rules ('password ' ,'required ' ,'length[ ' .Kohana::config ('auth.password_length ' ).'] ' , ' alpha_dash ' );
393- $ post ->add_rules ('password ' ,'required ' ,'length[ ' .Kohana::config ('auth.password_length ' ).'] ' ,'alpha_dash ' , ' matches[password_again] ' );
392+ $ post ->add_rules ('password ' ,'required ' ,'length[ ' .Kohana::config ('auth.password_length ' ).'] ' );
393+ $ post ->add_rules ('password ' ,'required ' ,'length[ ' .Kohana::config ('auth.password_length ' ).'] ' ,'matches[password_again] ' );
394394
395395 if ($ post ->validate ())
396396 {
@@ -1014,7 +1014,7 @@ private function _email_resetlink( $email, $name, $secret_url )
10141014 }
10151015 catch (Exception $ e )
10161016 {
1017- Kohana::log ('warning ' , Swift_LogContainer::getLog ()->dump (true ));
1017+ Kohana::log ('alert ' , Swift_LogContainer::getLog ()->dump (true ));
10181018 return FALSE ;
10191019 }
10201020
0 commit comments