PerlDancer / Dancer2-Plugin-Auth-Extensible-Provider-Database

Dancer2::Plugin::Database provider for Dancer2-Plugin-Auth-Extensible

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Login fails if database connection is lost

kielstr opened this issue · comments

Hey,

This problem is due to the fact you are caching the database connection. If the db connection is lost the cached connection is invalid and results, in my case in a mysql error 'server has gone away'.

my $database = $self->plugin_database($self->db_connection_name);

fixes the problem.

Cheer,

Kiel

See my pull request ;)