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