Skip to content

Commit 259fb6d

Browse files
FabianZihlmannbackportbot[bot]
authored andcommitted
Update EcallSMS.php
Update to Version 1.0.0 and 2.0.0 broke down EcallSMS. There was the following error: In TConfigurable.php line 58: Invalid configuration field: sender_id, check SCHEMA at OCA\TwoFactorGateway\Provider\Channel\SMS\Provider\Drivers\EcallSMS Signed-off-by: Fabian Zihlmann <fabian.zihlmann@mybica.ch>
1 parent e5a0c9f commit 259fb6d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/Provider/Channel/SMS/Provider/Drivers/EcallSMS.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
* @method static setUsername(string $username)
2323
* @method string getPassword()
2424
* @method static setPassword(string $password)
25-
* @method string getSenderid()
26-
* @method static setSenderid(string $senderid)
25+
* @method string getSender()
26+
* @method static setSender(string $sender)
2727
*/
2828
class EcallSMS extends AProvider {
2929
private IClient $client;
@@ -48,7 +48,7 @@ public function createSettings(): Settings {
4848
prompt: 'Please enter your eCall.ch password:',
4949
),
5050
new FieldDefinition(
51-
field: 'senderid',
51+
field: 'sender',
5252
prompt: 'Please enter your eCall.ch sender ID:',
5353
),
5454
]
@@ -59,13 +59,13 @@ public function createSettings(): Settings {
5959
public function send(string $identifier, string $message) {
6060
$user = $this->getUsername();
6161
$password = $this->getPassword();
62-
$senderId = $this->getSenderId();
62+
$sender = $this->getSender();
6363
try {
6464
$this->client->get('https://url.ecall.ch/api/sms', [
6565
'query' => [
6666
'username' => $user,
6767
'password' => $password,
68-
'Callback' => $senderId,
68+
'Callback' => $sender,
6969
'address' => $identifier,
7070
'message' => $message,
7171
],

0 commit comments

Comments
 (0)