Skip to content

Commit

Permalink
Add image to options for google authenticator url
Browse files Browse the repository at this point in the history
Thanks to @SamuelDauzon for the idea.
  • Loading branch information
ChristianRiesen committed Jun 10, 2016
1 parent 41552e3 commit b441f83
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/GoogleAuthenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ public static function getKeyUri($type, $label, $secret, $counter = null, $optio
$otpauth .= '&issuer=' . rawurlencode($options['issuer']);
}

// image (to accepts images for freeotp)
if (array_key_exists('image', $options)) {
$otpauth .= '&image=' . $options['image'];
}

return $otpauth;
}

Expand Down

0 comments on commit b441f83

Please sign in to comment.