Skip to content

Conversation

@MohsinQK
Copy link
Contributor

No description provided.

if ($otpInFieldArray2 === null && $otpInPostData2 !== null) {
$otpInFieldArray2 = $otpInPostData2;
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indent is broken

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After having a closer look, the naming is quite bad here, it should be $secretInFieldArray and $secretInPostData. This is fixed in my own v10 branch here (which is based on this cleaned-up patch): https://github.com/xperseguers/cf_google_authenticator/tree/feature/TYPO3v10

{
$this->data = $data;

$result = $this->initializeResultArray();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indent is broken

$result['html'] = $templateView->render();

return $result;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indent is broken

'tableName' => 'fe_users',
],
\CodeFareith\CfGoogleAuthenticator\Domain\Model\BackendUser::class => [
'tableName' => 'be_users',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indent is broken

'depends' =>
array (
'php' => '7.1-',
'typo3' => '10.4.99-',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong! This is 10.4.0-, possibly with upper bound so that it's officially not (yet) compatible with v11 => 10.4.0-10.4.99

),
'suggests' =>
array (
'felogin' => '10.4.99-',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

10.4.99- is wrong for the same reason but I would suggest to drop version compatibility here since felogin is a core extension and a mismatch with core is impossible anyway.

),
'uploadfolder' => false,
'clearcacheonload' => true,
);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally speaking, this whole file is using old array syntax, I don't get why the former clean square bracket syntax has been changed.

['felogin']
['postProcContent']
[$_EXTKEY] = \CodeFareith\CfGoogleAuthenticator\Hook\FeLogin::class . '->createOneTimePasswordField';
[$_EXTKEY] = \CodeFareith\CfGoogleAuthenticator\Hook\FeLogin::class . '->createOneTimePasswordField';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indent is broken

@xperseguers
Copy link
Contributor

I've the feeling it would be compatible with v9 as well, which would allow to have a v9-v10 compatibility which always eases the migration.

In addition, it looks like composer.json has not been updated.

@codeFareith codeFareith merged commit c8260c5 into codeFareith:master Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants