-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix usage of kundensystemId #471
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -589,6 +589,8 @@ public function selectTanMode($tanMode, $tanMedium = null) | |
} | ||
$this->selectedTanMode = $tanMode instanceof TanMode ? $tanMode->getId() : $tanMode; | ||
$this->selectedTanMedium = $tanMedium instanceof TanMedium ? $tanMedium->getName() : $tanMedium; | ||
|
||
$this->kundensystemId = $this->options->kundensystemId; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why does this happen within There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because it works here, no other reason 🤷♀️ There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd move it into the (Without that |
||
} | ||
|
||
/** | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,6 +45,14 @@ class FinTsOptions | |
/** @var int */ | ||
public $timeoutResponse = 30; | ||
|
||
/** | ||
* The Kundensystem-Id as returned by the bank and persisted by the application code | ||
* Prevents having to re-authenticate every time on login | ||
* Use DialogInitialization::getKundensystemId() on the return-object of FinTs::login(), to get the new one | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: "return object" without dash (compound nouns in English don't use dash) My actual question: Why does it say "the new one"? Isn't that the "only" one? I see two potential misunderstandings (of a library user) here:
Probably it would help to explain how this interacts with persistence, namely that it's meant to be stored in the database and be used the next time a FinTs instance is created, in a new PHP run. And that it's redundant if full |
||
* @var string | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Make it clear by the type here and in the explanation above that this is optional. And give it a |
||
*/ | ||
public $kundensystemId; | ||
|
||
/** | ||
* @throws \InvalidArgumentException If the options are invalid. | ||
*/ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrong indentation (also in the other file), please run the auto-formatter (cs-fix?)