]> PHS Git Server - phs-api.git/commitdiff
Adding auth, media, and messaging.
authorcharleswrayjr <charleswrayjr@gmail.com>
Sat, 13 Sep 2025 14:01:43 +0000 (09:01 -0500)
committercharleswrayjr <charleswrayjr@gmail.com>
Sat, 13 Sep 2025 14:01:43 +0000 (09:01 -0500)
src/models/authentication.model.js

index 79cf0b29f266ad3960090ed00a9c2e5fc9245440..df6a08a380d5c31466d39a3a1bc6f50fbd1da1b1 100644 (file)
@@ -178,15 +178,6 @@ class Authentication extends Model {
     } );
   };
 
-  // noinspection JSUnusedGlobalSymbols
-  /**
-   * Get authentication data without sensitive information
-   * @returns {Omit<Authentication, 'password'|'password_salt'>} Authentication data
-   */
-  to_safe_json() {
-    const { password, password_salt, ...safe_data } = this.toJSON();
-    return safe_data;
-  };
 }
 
 module.exports = Authentication;
\ No newline at end of file