Add method="upgrade" for plugins (twofactorauth and user)

@infograf768

Here the requested changes. for the user and twofactorauth plugins.