Skip to content

Commit

Permalink
ds
Browse files Browse the repository at this point in the history
  • Loading branch information
huziibee committed Jan 8, 2024
1 parent 469f261 commit c196831
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/lightsail-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,4 @@ jobs:
sudo git clone https://github.com/huziibee/aws-b-app-1.git
cd aws-b-app-1
sudo npm install
sudo npm install pm2 -g
forever start server.js
5 changes: 5 additions & 0 deletions AWS-APP/Login/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ const userPool = new AmazonCognitoIdentity.CognitoUserPool({
ClientId: '23hinerifjsno4tbq6bbrcencc', // Generated in the Cognito User Pool settings
});

document.addEventListener('DOMContentLoaded', function() {
if (window.location.href === '' ) {
window.location.href = '../Login/index.html';
}
})

function loginUser(name, password) {
const authenticationDetails = new AmazonCognitoIdentity.AuthenticationDetails({
Expand Down

0 comments on commit c196831

Please sign in to comment.