Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix config and mail #143

Merged
merged 1 commit into from
Oct 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions bin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export FREENIT_ENV="build"


setup
pip install hatchling


rm -rf *.egg-info build dist
Expand Down
16 changes: 16 additions & 0 deletions bin/freenit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,22 @@ EOF
}
})
</script>
EOF
cat >'src/routes/verify/+page.svelte' <<EOF
<div class="root">
<h1>Welcome</h1>
<p>You should receive email to verify your account shortly!</p>
</div>

<style>
.root {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
height: 100%;
}
</style>
EOF

npm run format
Expand Down
4 changes: 2 additions & 2 deletions freenit/app.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from contextlib import asynccontextmanager
from fastapi import FastAPI

import freenit.config
from .config import getConfig

from .api import api

config = freenit.config.getConfig()
config = getConfig()


@asynccontextmanager
Expand Down
2 changes: 1 addition & 1 deletion freenit/mail.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ def sendmail(to, message):
server.ehlo()
server.starttls()
server.ehlo()
server.login(mail.username, mail.password)
server.login(mail.user, mail.password)
server.sendmail(message["From"], to, message.as_string().encode("utf-8"))
6 changes: 0 additions & 6 deletions freenit/project/bin/devel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ export OFFLINE=${OFFLINE:="no"}
. ${BIN_DIR}/common.sh
setup

if [ ! -e "alembic/versions" ]; then
mkdir -p alembic/versions
alembic revision --autogenerate -m initial
fi
alembic upgrade head

echo "Backend"
echo "==============="
python main.py
4 changes: 2 additions & 2 deletions freenit/project/project/app.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from contextlib import asynccontextmanager
from fastapi import FastAPI

import freenit.config
from .config import getConfig

from .api import api

config = freenit.config.getConfig()
config = getConfig()


@asynccontextmanager
Expand Down
Loading