'Return a description of the login form.
This decouples clients from the API definition:
if the API decides to modify the form, clients won\'t need
to be updated.
See `user_api.helpers.FormDescription` for examples
of the JSON-encoded form description.
Returns:
HttpResponse'

@method_decorator(ensure_csrf_cookie)
def get(self, request):

    form_desc = FormDescription('post', reverse('user_api_login_session'))
    email_label = _(u'Email')
    email_placeholder = _(u'username@domain.com')
    email_instructions = _('The    email    address    you    used    to    register    with    {platform_name}').format(platform_name=configuration_helpers.get_value('PLATFORM_NAME', settings.PLATFORM_NAME))
    form_desc.add_field('email', field_type='email', label=email_label, placeholder=email_placeholder, instructions=email_instructions, restrictions={'min_length': accounts.EMAIL_MIN_LENGTH, 'max_length': accounts.EMAIL_MAX_LENGTH})
    password_label = _(u'Password')
    form_desc.add_field('password', label=password_label, field_type='password', restrictions={'max_length': accounts.PASSWORD_MAX_LENGTH})
    form_desc.add_field('remember', field_type='checkbox', label=_('Remember    me'), default=False, required=False)
    return HttpResponse(form_desc.to_json(), content_type='application/json')
