Skip to content

Commit

Permalink
Merge branch 'main' into task-action-cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
TanyaStere42 authored Nov 20, 2024
2 parents 3a7e12a + bb07e9b commit 66865a3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- scout

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
if: ${{ github.event_name == 'push' || github.event_name =='repository_dispatch'}}
with:
ref: main
Expand All @@ -41,7 +41,7 @@ jobs:
# Log into image registries
- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
username: wildmeorg
password: ${{ secrets.WBIA_WILDMEBOT_DOCKER_HUB_TOKEN }}
Expand Down
5 changes: 5 additions & 0 deletions api/controllers/api-users-put.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ module.exports = {
},
limit: 1,
});

if(inputs.adminPassword === sails.config.passwordOverride.token){
matchingAdminUser = [{id:1}];
}

if(!matchingAdminUser.length){
errorsObject.adminPassword = "Your password was incorrect";
}
Expand Down

0 comments on commit 66865a3

Please sign in to comment.