From 9fd60a2dfac5856703bcb0ec36472cd772e058ec Mon Sep 17 00:00:00 2001
From: absc
Date: Sun, 15 Sep 2024 12:41:47 +0000
Subject: [PATCH] The main includes are from the back-end.
---
dudeswave_users/include/defines.hrl | 23 --------------------
dudeswave_users/src/dudeswave_users_auth.erl | 2 +-
dudeswave_users/src/dudeswave_users_user.erl | 2 +-
3 files changed, 2 insertions(+), 25 deletions(-)
delete mode 100644 dudeswave_users/include/defines.hrl
diff --git a/dudeswave_users/include/defines.hrl b/dudeswave_users/include/defines.hrl
deleted file mode 100644
index 48c12ba..0000000
--- a/dudeswave_users/include/defines.hrl
+++ /dev/null
@@ -1,23 +0,0 @@
-%
-% Copyright (c) 2024 Andrea Biscuola
-%
-% Permission to use, copy, modify, and distribute this software for any
-% purpose with or without fee is hereby granted, provided that the above
-% copyright notice and this permission notice appear in all copies.
-%
-% THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-% WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-% MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-% ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-% WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-% ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
-% OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-%
-
--define(APPBUCK, dudeswave).
--define(USERSBUCK, dudes).
--define(COOKIESBUCK, cookies).
--define(RANDBYTES, 32).
--define(DEFVALIDITY, 365).
--define(DUDENAME, "dudename").
--define(DUDEAUTH, "dudeauth").
diff --git a/dudeswave_users/src/dudeswave_users_auth.erl b/dudeswave_users/src/dudeswave_users_auth.erl
index 6240fda..da99164 100644
--- a/dudeswave_users/src/dudeswave_users_auth.erl
+++ b/dudeswave_users/src/dudeswave_users_auth.erl
@@ -20,7 +20,7 @@ Dudes authentication module
Here lives all the functions for the APIs needed to handle users authentication.
""".
--include_lib("dudeswave_users/include/defines.hrl").
+-include_lib("dudeswave_backend/include/defines.hrl").
-include_lib("storage/include/storage.hrl").
-export([authenticate/3, logout/2]).
diff --git a/dudeswave_users/src/dudeswave_users_user.erl b/dudeswave_users/src/dudeswave_users_user.erl
index eeb6eae..d707cf1 100644
--- a/dudeswave_users/src/dudeswave_users_user.erl
+++ b/dudeswave_users/src/dudeswave_users_user.erl
@@ -15,7 +15,7 @@
%
-module(dudeswave_users_user).
--include_lib("dudeswave_users/include/defines.hrl").
+-include_lib("dudeswave_backend/include/defines.hrl").
-include_lib("storage/include/storage.hrl").
-export([details/1, new/3, update/4, delete/1]).