API Tokens #134

Merged
Dalai Felinto merged 6 commits from tokens into main 2024-05-27 12:53:31 +02:00
Showing only changes of commit 3fae0fec5b - Show all commits

View File

@ -68,7 +68,7 @@ class CreateTokenView(LoginRequiredMixin, SuccessMessageMixin, CreateView):
form.instance.token_hash = token_hash form.instance.token_hash = token_hash
form.instance.token_begin = token[:5] form.instance.token_begin = token[:5]
messages.info(self.request, f'Your new token: {token}') messages.info(self.request, f'{token}')
dfelinto marked this conversation as resolved Outdated

what is the purpose of wrapping token in an f-string here?

what is the purpose of wrapping token in an f-string here?
return super().form_valid(form) return super().form_valid(form)