-
Notifications
You must be signed in to change notification settings - Fork 406
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support for checkpoint verification
- Loading branch information
1 parent
2e6ad17
commit 8f76506
Showing
5 changed files
with
113 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<title>IG:dm - Instagram Desktop Messenger</title> | ||
This comment has been minimized.
Sorry, something went wrong. |
||
<meta charset="utf-8"> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> | ||
<link rel="stylesheet" type="text/css" href="../node_modules/bootstrap/dist/css/bootstrap.min.css"> | ||
<link rel="stylesheet" type="text/css" href="css/login.css"> | ||
</head> | ||
<body> | ||
<div class="container cardBox pb-5 pt-3 pt-sm-5"> | ||
<form class="pageCard mx-auto p-4 p-sm-5"> | ||
<div class="clearfix welcomeBox"><span class="d-block text-center">Please enter the verification code sent to your e-mail address</span></div> | ||
<div class="input-group loginInputs mt-4"> | ||
<input class="form-control code" type="text" name="code" required="true" placeholder="Code"> | ||
</div> | ||
<button class="loginButton mt-3 btn btn-primary" type="submit">Submit Code</button><span class="d-block errorMessage text-center mt-3" id="error"></span> | ||
</form> | ||
</div> | ||
<script type="text/javascript" src="js/checkpoint.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
var electron = require('electron'); | ||
var ipcRenderer = electron.ipcRenderer; | ||
|
||
document.addEventListener('DOMContentLoaded', () => { | ||
document.querySelector('form').onsubmit = (e) => { | ||
e.preventDefault() | ||
let button = document.querySelector('button[type=submit]'); | ||
button.innerText = 'Submitting code...' | ||
button.classList.add('loggingIn', 'disabled'); | ||
const code = document.querySelector('input[name=code]').value; | ||
ipcRenderer.send('checkpointCode', {code}) | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
extends _layout | ||
|
||
append head | ||
link(rel='stylesheet', type='text/css', href='css/login.css') | ||
|
||
block content | ||
.container.cardBox.pb-5.pt-3.pt-sm-5 | ||
form.pageCard.mx-auto.p-4.p-sm-5 | ||
.clearfix.welcomeBox | ||
span.d-block.text-center Please enter the verification code sent to your e-mail address | ||
.input-group.loginInputs.mt-4 | ||
input.form-control.code(type='text', name='code', required='true', placeholder='Code') | ||
button.loginButton.mt-3.btn.btn-primary(type='submit') Submit Code | ||
span#error.d-block.errorMessage.text-center.mt-3 | ||
script(type='text/javascript', src='js/checkpoint.js') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8f76506