       end
 
       @doc """
+      Get the user from the database.
+      """
+      def get_login_user(login_field, login, _params) do
+        @schemas.get_by_user [{login_field, login}]
+      end
+
+      @doc """
       Check if the user is confirmed.
       """
       def confirmed_access?(user) do

        do_rememberable_callback: 5, do_valid_login: 4, save_login_cookie: 5,
        save_rememberable: 3, get_rememberables: 1, validate_login: 3,
        get_invalid_login!: 4, delete_expired_tokens!: 1, hash: 1, gen_cookie: 3,
        user_active?: 1, schema: 1)
    end
  end
end

          else
            false
          end
        user = get_login_user(login_field, login, params)

        if valid_user_login? user, params do
          if confirmed_access? user do
            do_lockable(conn, login_field, [user, user_schema, remember, lockable?,
