generated from PlexSheep/rs-base
feat: show secret on admin detail page
cargo devel CI / cargo CI (push) Successful in 1m58s
Details
cargo devel CI / cargo CI (push) Successful in 1m58s
Details
This commit is contained in:
parent
3204047b28
commit
183dbbdc3d
|
@ -37,6 +37,7 @@
|
||||||
</svg>
|
</svg>
|
||||||
{{challenge.solution}}
|
{{challenge.solution}}
|
||||||
</p>
|
</p>
|
||||||
|
<code>{{secret}}</code>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -58,6 +58,7 @@ async fn details(
|
||||||
..default_context(),
|
..default_context(),
|
||||||
..context!(
|
..context!(
|
||||||
challenge => challenge,
|
challenge => challenge,
|
||||||
|
secret => vault.secret(),
|
||||||
title => "Wooly-Vault Admin Interface",
|
title => "Wooly-Vault Admin Interface",
|
||||||
contestants => vault.contestants().await.iter().collect::<Vec<_>>(),
|
contestants => vault.contestants().await.iter().collect::<Vec<_>>(),
|
||||||
winners => vault.winners().await.iter().collect::<Vec<_>>(),
|
winners => vault.winners().await.iter().collect::<Vec<_>>(),
|
||||||
|
|
|
@ -17,7 +17,7 @@ use tokio::sync::Mutex;
|
||||||
/// This type is used to share a [`Vault`] instance across multiple parts of the application.
|
/// This type is used to share a [`Vault`] instance across multiple parts of the application.
|
||||||
pub type VaultRef = Arc<Vault>;
|
pub type VaultRef = Arc<Vault>;
|
||||||
|
|
||||||
#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
|
#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize, PartialOrd, Ord)]
|
||||||
pub struct Contestant {
|
pub struct Contestant {
|
||||||
ip: IpAddr,
|
ip: IpAddr,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue