Kimai_Database_Mysql::customer_loginSetKey PHP Method

customer_loginSetKey() public method

Save a new secure key for a customer to the database. This key is stored in the clients cookie and used to reauthenticate the customer.
Author: sl
public customer_loginSetKey ( $customerId, $keymai )
$customerId
$keymai
    public function customer_loginSetKey($customerId, $keymai)
    {
        $p = $this->kga['server_prefix'];
        $query = "UPDATE {$p}customers SET secure='{$keymai}' WHERE customerID='" . $this->conn->SQLFix($customerId) . "';";
        $this->conn->Query($query);
    }
Kimai_Database_Mysql