Auth::getUsername()

Auth::getUsername() --  get the username of the current authentication session

Synopsis

string Auth::getUsername ()

Описание

Using this method, one can retrieve the username (often also referred to as the "user id") of the user of the current authentication session.

Заметка

Эта функция не должна вызываться статически.