mirror of
https://github.com/warp-tech/warpgate.git
synced 2025-09-07 07:04:22 +08:00
lint
This commit is contained in:
parent
2381f55696
commit
bf03fbc6df
2 changed files with 8 additions and 8 deletions
|
@ -130,7 +130,7 @@ impl AuthState {
|
|||
|
||||
fn maybe_update_verification_state(&mut self) -> AuthResult {
|
||||
let new_result = self.current_verification_state();
|
||||
if &Some(new_result.clone()) != &self.last_result {
|
||||
if Some(new_result.clone()) != self.last_result {
|
||||
debug!(
|
||||
"Verification state changed for auth state {}: {:?} -> {:?}",
|
||||
self.id, self.last_result, &new_result
|
||||
|
@ -139,7 +139,7 @@ impl AuthState {
|
|||
}
|
||||
self.last_result = Some(new_result.clone());
|
||||
|
||||
return new_result;
|
||||
new_result
|
||||
}
|
||||
|
||||
pub fn construct_web_approval_url(
|
||||
|
|
|
@ -238,12 +238,12 @@ impl PostgresSession {
|
|||
|
||||
self.stream
|
||||
.push(pgwire::messages::response::NoticeResponse::new(vec![
|
||||
('S' as u8, "WARNING".into()),
|
||||
('V' as u8, "WARNING".into()),
|
||||
('C' as u8, "WG001".into()),
|
||||
('M' as u8, "Warpgate authentication: please open the following URL in your browser:".into()),
|
||||
('D' as u8, login_url.into()),
|
||||
('H' as u8, format!(
|
||||
(b'S', "WARNING".into()),
|
||||
(b'V', "WARNING".into()),
|
||||
(b'C', "WG001".into()),
|
||||
(b'M', "Warpgate authentication: please open the following URL in your browser:".into()),
|
||||
(b'D', login_url.into()),
|
||||
(b'H', format!(
|
||||
"Make sure you're seeing this security key: {}\n",
|
||||
identification_string
|
||||
.chars()
|
||||
|
|
Loading…
Add table
Reference in a new issue