Auto-redirect to login when not logged in

When visiting the account self-removal form, make sure
that the current user is in session. If not, redirect to login
and, once logged in, redirect back to the form.

This allows to include the account self-removal form as deeplink
and enable a frictionless flow for users to check their personal
information and remove themselves if required.

Change-Id: I30280d48799a8880b15434eac2dad8583dbd6449
4 files changed
tree: ddff7194895947583e09bc1c3dffe94ee8b7f919
  1. src/
  2. tools/
  3. .gitignore
  4. bower.json
  5. BUILD
  6. external_plugin_deps.bzl
  7. LICENSE
  8. README.md
README.md

Account management plugin for Gerrit Code Review

A plugin that allows accounts to be deleted from Gerrit via an SSH command or REST API.

How to build

To build this plugin you need to have Bazel and Gerrit source tree. See the detailed instructions on how to build it.

Commands

This plugin adds an new SSH command and a REST API for removing accounts from Gerrit.