// Libraries mod interface; mod resource; mod secure; mod auth; // Functions // Entry-Point fn main() { // Variables let auth_profile: auth::Auth; // Checking if we need to register or log in if auth::Auth::exists() { // Asking user for login credentials let (username, password) = interface::int_auth(); // Verify the user auth_profile = auth::Auth::authenticate(username, password); } else { // Asking user for register credentials let (username, password) = interface::int_reg(); // Creating the user auth_profile = auth::Auth::create(username, password); } // DEBUG: Testing if the user is authenticated println!("Authenticated Status: {}", auth_profile.verified); }