PATH:
home
/
letacommog
/
letaweb
/
protected
/
modules
/
admin
/
models
<?php class ResetPassForm extends CFormModel { public $id; public $password; public $confirm_password; /** * @return array customized attribute labels (name=>label) */ public function attributeLabels() { return array( 'password' => 'Password', 'confirm_password' => 'Confirm password', ); } public function rules() { return array( array('id', 'numerical'), array('confirm_password, password', 'required'), array('password', 'length', 'min' => 6), array('confirm_password', 'length', 'min' => 6), array('password', 'compare', 'compareAttribute' => 'confirm_password'), array('id, confirm_password, password', 'safe'), ); } public function save($item = null) { if ($this->validate()) { if (isset($this->id)) { $user = User::model()->findByPk($this->id); $user->password = crypt($this->password, Randomness::blowfishSalt()); $user->save(); return true; } } else { return false; } } }
[+]
..
[-] DBPageForm.php
[edit]
[-] PlanDescriptionForm.php
[edit]
[-] HostingConfigurationForm.php
[edit]
[-] MailConfigurationForm.php
[edit]
[-] TemplateForm.php
[edit]
[-] ModuleForm.php
[edit]
[-] PageForm.php
[edit]
[-] PaymentConfigurationForm.php
[edit]
[-] CategoryForm.php
[edit]
[-] TermForm.php
[edit]
[-] DbListForm.php
[edit]
[-] ModuleDataForm.php
[edit]
[-] UploadTemplateForm.php
[edit]
[-] PlanConditionForm.php
[edit]
[-] ChangeDomainForm.php
[edit]
[-] LanguageForm.php
[edit]
[-] SkinPresetForm.php
[edit]
[-] PlanForm.php
[edit]
[-] UpgradePageForm.php
[edit]
[-] MailTemplateForm.php
[edit]
[-] ColorForm.php
[edit]
[-] MakeTempleteFromSiteForm.php
[edit]
[-] ResetPassForm.php
[edit]
[-] InterfaceForm.php
[edit]
[-] ContentForm.php
[edit]
[-] UserForm.php
[edit]
[-] ExtendPageForm.php
[edit]
[-] ConfigurationForm.php
[edit]
[-] ModuleCategoryForm.php
[edit]
[-] SocialShareButtonForm.php
[edit]