<?php
/**
 *------Create thems Model------
 *------SCWPHP  Version 1.0.0------
 *------Dev Model Jions------
 *------Create Time 2017-06-05 09:03:49------
 */
namespace App\Home\Model;
use \System\Model;

class Account_password extends Model {

	protected $table = 'account_password';

	public $timestamps = false;

	/**
	 * 修改用户密码
	 *
	 * @param $identity
	 * @param $pwdData
	 */
	public function updatePassword($identity, $pwdData) {
		$data = ['account_password' => $pwdData['password'], 'encryption' => $pwdData['encryption']];
		$this->where('account_identity', $identity)->update($data);
	}
}
