Allow multiple ways to access url and fix ci
This commit is contained in:
1 parent
1fcd13b5e1
commit
3caf2d9d2c
11 files changed
+27
-27
No files matched your search
@@ -122,9 +122,9 @@ class TwoFactorAuthAPI(APIView):
|
||||
config = WebsiteConfig.objects.first()
|
||||
image = qrcode.make(OtpAuth(token).to_uri("totp", config.base_url, config.name))
|
||||
buf = StringIO()
|
||||
image.save(buf, 'gif')
|
||||
image.save(buf, "gif")
|
||||
|
||||
return HttpResponse(buf.getvalue(), 'image/gif')
|
||||
return HttpResponse(buf.getvalue(), "image/gif")
|
||||
|
||||
@login_required
|
||||
@validate_serializer(TwoFactorAuthCodeSerializer)
|
||||
|
||||
Reference in new issue
Block a user