Skip to content

Commit 52dec9e

Browse files
committed
v0.1.3
1 parent 725d5a3 commit 52dec9e

File tree

5 files changed

+16
-3
lines changed

5 files changed

+16
-3
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "notify"
3-
version = "0.1.1"
3+
version = "0.1.3"
44
authors = ["ranfdev <[email protected]>"]
55
edition = "2021"
66

data/resources/com.ranfdev.Notify.metainfo.xml.in.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@
2626

2727
<content_rating type="oars-1.0" />
2828
<releases>
29+
<release version="0.1.3" date="2023-11-16">
30+
<ul>
31+
<li>Support for basic authentication with custom accounts</li>
32+
<li>Custom server field is now prefilled when appropriate</li>
33+
</ul>
34+
</release>
2935
<release version="0.1.2" date="2023-11-07">
3036
<ul>
3137
<li>Introduced dialog to write advanced messages</li>

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
project(
22
'notify',
33
'rust',
4-
version: '0.1.2',
4+
version: '0.1.3',
55
meson_version: '>= 0.59',
66
# license: 'MIT',
77
)

ntfy-daemon/src/credentials.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ impl Credentials {
5858
self.creds.borrow().clone()
5959
}
6060
pub async fn insert(&self, server: &str, username: &str, password: &str) -> anyhow::Result<()> {
61+
{
62+
if let Some(cred) = self.creds.borrow().get(server) {
63+
if cred.username != username {
64+
anyhow::bail!("You can add only one account per server");
65+
}
66+
}
67+
}
6168
let attrs = HashMap::from([
6269
("type", "password"),
6370
("username", username),

0 commit comments

Comments
 (0)