This commit is contained in:
Eugene 2025-05-21 20:23:15 +02:00
parent 2381f55696
commit bf03fbc6df
No known key found for this signature in database
GPG key ID: 5896FCBBDD1CF4F4
2 changed files with 8 additions and 8 deletions

View file

@ -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(

View file

@ -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()