overleaf/services/web/app/views/user/logout.pug
Ersun Warncke 330f878085 Merge pull request #1378 from sharelatex/ew-post-logout
POST logout instead of GET

GitOrigin-RevId: b502a6ed945acd336d1a921e5c4c5433d8b7c7b7
2019-01-15 16:48:00 +00:00

20 lines
710 B
Text

extends ../layout
block vars
- metadata = { viewport: true }
block content
.content.content-alt
.login-register-container
.card.login-register-card
.login-register-header
h1.login-register-header-heading #{translate("log_out")}
form.login-register-form(name="logoutForm", action='/logout', method="POST" ng-init="$scope.inflight=true" auto-submit-form)
input(name='_csrf', type='hidden', value=csrfToken)
.actions
button#submit-logout.btn-primary.btn.btn-block(
type='submit',
ng-disabled="$scope.inflight"
)
span(ng-show="!$scope.inflight") #{translate("log_out")}
span(ng-show="$scope.inflight" ng-cloak) #{translate("logging_out")}...