Skip to content

Commit

Permalink
Fix interface change 'Logged in as' -> 'Welcome'
Browse files Browse the repository at this point in the history
  • Loading branch information
mb committed Jan 29, 2018
1 parent 9094c37 commit 4a9e7c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ function htz_curl($url=false, $header=false, $cookie=false, $referer=false, $pos
function htz_validate_login($str) {
// This function confirms successful login based on response HTML.
global $htz_user;
if (!preg_match_all("/.*Logged in as:.*/",$str,$matches)) {
htz_say(__FUNCTION__. ": Couldn't find the line in response: 'Logged in as'",2);
if (!preg_match_all("/.*Welcome.*/",$str,$matches)) {
htz_say(__FUNCTION__. ": Couldn't find the line in response: 'Welcome'",2);
} else {
htz_say(__FUNCTION__. ": Confirmed login to Hetzner as user $htz_user.",0); return true;
}
Expand Down

0 comments on commit 4a9e7c8

Please sign in to comment.