mirror of
https://github.com/bingohuang/docker-labs.git
synced 2025-10-04 01:17:49 +08:00
Allow to override session timeout. (#86)
* Allow to override session timeout. This comes useful as it can be overriden from the SDK now * Fix comments
This commit is contained in:
@@ -7,8 +7,7 @@
|
||||
// Controller keeps code/logic separate from the HTML
|
||||
app.controller("BypassController", ['$scope', '$log', '$http', '$location', '$timeout', function($scope, $log, $http, $location, $timeout) {
|
||||
setTimeout(function() {
|
||||
var el = document.querySelector("#submit");
|
||||
el.click();
|
||||
document.getElementById("welcomeFormBypass").submit();
|
||||
}, 500);
|
||||
}]);
|
||||
|
||||
|
@@ -10,7 +10,7 @@
|
||||
<h1>Welcome!</h1>
|
||||
<h2>We're bypassing the Captcha and redirecting you now..</h2>
|
||||
<form id="welcomeFormBypass" method="POST" action="/">
|
||||
<button id="submit" type="submit">Start Session</button>
|
||||
<button id="start" type="submit">Start Session</button>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
|
@@ -13,6 +13,7 @@
|
||||
<h2>Before starting we need to verify you are a human</h2>
|
||||
<form id="welcomeForm" method="POST" action="/">
|
||||
<div class="g-recaptcha" data-callback="iAmHuman" data-sitekey="{{.}}"></div>
|
||||
<input type="hidden" name="session-duration" value="1h"/>
|
||||
</form>
|
||||
<img src="/assets/large_h.png" />
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user