Compare commits
No commits in common. "630c5aa537eefdd5e5bae0646ecb119d723ba195" and "8784e141ebb1bb0610a23aad111bf3769f77dd1b" have entirely different histories.
630c5aa537
...
8784e141eb
@ -1,5 +1,5 @@
|
|||||||
[tool.bumpversion]
|
[tool.bumpversion]
|
||||||
current_version = "1.3.13"
|
current_version = "1.3.12"
|
||||||
commit = true
|
commit = true
|
||||||
tag = true
|
tag = true
|
||||||
tag_name = "{new_version}"
|
tag_name = "{new_version}"
|
||||||
|
7
app.py
7
app.py
@ -126,9 +126,6 @@ def login() -> Union[Response, str]:
|
|||||||
session["logged_in"] = True
|
session["logged_in"] = True
|
||||||
session["username"] = username
|
session["username"] = username
|
||||||
session["auth_credentials"] = encoded_credentials
|
session["auth_credentials"] = encoded_credentials
|
||||||
next_url = request.args.get("next")
|
|
||||||
if next_url:
|
|
||||||
return redirect(next_url)
|
|
||||||
return redirect(url_for("home"))
|
return redirect(url_for("home"))
|
||||||
except requests.exceptions.RequestException:
|
except requests.exceptions.RequestException:
|
||||||
pass # Fall through to error
|
pass # Fall through to error
|
||||||
@ -165,16 +162,12 @@ def user_accounts() -> Union[Response, str]:
|
|||||||
@app.route("/share", methods=["GET"])
|
@app.route("/share", methods=["GET"])
|
||||||
def share() -> Response:
|
def share() -> Response:
|
||||||
"""Handles shared text from PWA."""
|
"""Handles shared text from PWA."""
|
||||||
if not session.get("logged_in"):
|
|
||||||
return redirect(url_for("index", next=request.url))
|
|
||||||
shared_text = request.args.get("text")
|
shared_text = request.args.get("text")
|
||||||
return redirect(url_for("add_account", shared_text=shared_text))
|
return redirect(url_for("add_account", shared_text=shared_text))
|
||||||
|
|
||||||
@app.route("/accounts/add", methods=["GET", "POST"])
|
@app.route("/accounts/add", methods=["GET", "POST"])
|
||||||
def add_account() -> Union[Response, str]:
|
def add_account() -> Union[Response, str]:
|
||||||
"""Handles adding a new user account."""
|
"""Handles adding a new user account."""
|
||||||
if not session.get("logged_in"):
|
|
||||||
return redirect(url_for("index", next=request.url))
|
|
||||||
base_url = app.config["BASE_URL"]
|
base_url = app.config["BASE_URL"]
|
||||||
shared_text = request.args.get('shared_text')
|
shared_text = request.args.get('shared_text')
|
||||||
|
|
||||||
|
@ -19,9 +19,8 @@
|
|||||||
"display": "standalone",
|
"display": "standalone",
|
||||||
"theme_color": "#ffffff",
|
"theme_color": "#ffffff",
|
||||||
"share_target": {
|
"share_target": {
|
||||||
"action": "/share",
|
"action": "share",
|
||||||
"method": "GET",
|
"method": "GET",
|
||||||
"enctype": "application/x-www-form-urlencoded",
|
|
||||||
"params": {
|
"params": {
|
||||||
"text": "text"
|
"text": "text"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user