Revize 5ab61fb4
Přidáno uživatelem Michal Kliment před téměř 5 roky(ů)
application/controllers/api.php | ||
---|---|---|
*/
|
||
public function getUserPassword($username)
|
||
{
|
||
try
|
||
try
|
||
{
|
||
$ua = $this->api_account_model->find_by_username($username);
|
||
if ($ua === NULL)
|
||
{
|
||
return FALSE;
|
||
}
|
||
return $ua->token;
|
||
|
||
if ($ua === NULL)
|
||
{
|
||
return FALSE;
|
||
}
|
||
|
||
return $ua->token;
|
||
}
|
||
catch (Exception $ex)
|
||
catch (Exception $ex)
|
||
{
|
||
Log::add_exception($ex);
|
||
return FALSE;
|
Také k dispozici: Unified diff
Fix invalid reformatting (LF must be used in sources, not Windows CRLF, also double indentation was removed).