21 lines
439 B
Rust
21 lines
439 B
Rust
|
|
use interface::int_auth;
|
||
|
|
|
||
|
|
// Libraries
|
||
|
|
mod interface;
|
||
|
|
mod resource;
|
||
|
|
mod secure;
|
||
|
|
mod auth;
|
||
|
|
|
||
|
|
// Functions
|
||
|
|
|
||
|
|
// Entry-Point
|
||
|
|
fn main() {
|
||
|
|
// Asking user for login credentials
|
||
|
|
let (username, password) = int_auth();
|
||
|
|
|
||
|
|
// Verify the user
|
||
|
|
let auth_profile: auth::Auth = auth::Auth::authenticate(username, password);
|
||
|
|
|
||
|
|
// DEBUG: Testing if the user is authenticated
|
||
|
|
println!("Authenticated Status: {}", auth_profile.verified);
|
||
|
|
}
|