Fix bug in web UI

This commit is contained in:
Daniil Gentili 2018-03-20 22:56:57 +01:00
parent dcec2787ed
commit 449264ed69

View File

@ -127,7 +127,7 @@ trait Start
public function web_complete_signup() public function web_complete_signup()
{ {
try { try {
$this->complete_2fa_login($_POST['first_name'], isset($_POST['last_name']) ? $_POST['last_name'] : ''); $this->complete_signup($_POST['first_name'], isset($_POST['last_name']) ? $_POST['last_name'] : '');
$this->web_echo(); $this->web_echo();
} catch (\danog\MadelineProto\RPCErrorException $e) { } catch (\danog\MadelineProto\RPCErrorException $e) {
$this->web_echo('ERROR: '.$e->getMessage().'. Try again.'); $this->web_echo('ERROR: '.$e->getMessage().'. Try again.');