tpl auth component
Merge pull request #6 from rigidus/master

upd