lib/private/Accounts/AccountManager.php
/**
	 * check if we need to ask the server for email verification, if yes we create a cronjob
	 *
	 * @param $oldData
	 * @param $newData
	 * @param IUser $user
	 * @return array
	 */
check if we need to ask the server for email verification, if yes we create a cronjob
@param $oldData
@param $newData
@param IUser $user
@return array
check if we need to ask the server for email verification if yes we create a cronjob @param $oldData @param $newData @param IUser $user @return array
protected function checkEmailVerification($oldData, $newData, IUser $user) {
		if ($oldData[self::PROPERTY_EMAIL]['value'] !== $newData[self::PROPERTY_EMAIL]['value']) {
			$this->jobList->add('OC\Settings\BackgroundJobs\VerifyUserData',
				[
					'verificationCode' => '',
					'data' => $newData[self::PROPERTY_EMAIL]['value'],
					'type' => self::PROPERTY_EMAIL,
					'uid' => $user->getUID(),
					'try' => 0,
					'lastRun' => time()
				]
			);
			$newData[AccountManager::PROPERTY_EMAIL]['verified'] = AccountManager::VERIFICATION_IN_PROGRESS;
		}
		return $newData;
	}
protected function checkEmailVerification ( $ oldData , $ newData , IUser $ user ) { if ( $ oldData [ self :: PROPERTY_EMAIL ] [ 'value' ] !== $ newData [ self :: PROPERTY_EMAIL ] [ 'value' ] ) { $ this -> jobList -> add ( 'OC\Settings\BackgroundJobs\VerifyUserData' , [ 'verificationCode' => '' , 'data' => $ newData [ self :: PROPERTY_EMAIL ] [ 'value' ] , 'type' => self :: PROPERTY_EMAIL , 'uid' => $ user -> getUID ( ) , 'try' => 0 , 'lastRun' => time ( ) ] ) ; $ newData [ AccountManager :: PROPERTY_EMAIL ] [ 'verified' ] = AccountManager :: VERIFICATION_IN_PROGRESS ; } return $ newData ; }
check if we need to ask the server for email verification, if yes we create a cronjob
 @param $oldData
 @param $newData
 @param IUser $user
 @return array
check if we need to ask the server for email verification if yes we create a cronjob @param $oldData @param $newData @param IUser $user @return array