diff --git a/src/shared/treaties/strip_suffix_treated.rs b/src/shared/treaties/strip_suffix_treated.rs index 497f41a..13e0634 100644 --- a/src/shared/treaties/strip_suffix_treated.rs +++ b/src/shared/treaties/strip_suffix_treated.rs @@ -1,6 +1,36 @@ use crate::shared::exceptions::exception::Exception; use actix_web::HttpResponse; +/// # Strip Suffix +/// +/// ## Purpose +/// +/// Strip suffix the salt from a user_password +/// +/// ## Arguments +/// +/// * `input` - String +/// * `suffix` - String +/// +/// ## Returns +/// +/// String +/// +/// ## Errors +/// +/// - Internal Server Error - If it fails to strip the suffix +/// +/// ## Example +/// +/// ```rust +/// use actix_web::HttpResponse; +/// use navarro_blog_api::shared::treaties::strip_suffix_treated::StripSuffix; +/// +/// let password = String::from("test12856464656454545"); +/// let salt = "12856464656454545"; +/// +/// let response = StripSuffix::strip_suffix(password, salt); +/// ``` pub struct StripSuffix {} impl StripSuffix {