Comments (6)
I believe some thing like below could solve this loop issue.
resolved_username = username
while True:
postfix = str(i) if i > 0 else ""
resolved_username = f"{username}{postfix}"
existing_username = await self._repo.get_by_username(resolved_username)
if not existing_username:
break
i = i+1
from authx.
Hello, @iftenet I didn't notice that loop, but I see it can be fixed as you proposed, want to contribute and open a Pull request?
from authx.
Hello, @iftenet I didn't notice that loop, but I see it can be fixed as you proposed, want to contribute and open a Pull request?
I will be glad if you give me the opportunity to contribute.
from authx.
Hello, @iftenet I didn't notice that loop, but I see it can be fixed as you proposed, want to contribute and open a Pull request?
I will be glad if you give me the opportunity to contribute.
Yes for sure!
I will assign it as a bug and you can work on it 🚀
from authx.
@yezz123 I am going to create a PR but seems I have no permission to push.
ERROR: Permission to yezz123/authx.git denied to iftenet.
You can fork the project and try to made your changes in your fork you will find it in this way, iftenet/authx.git then a yellow head with a button create PR
from authx.
@yezz123 I am going to create a PR but seems I have no permission to push.
ERROR: Permission to yezz123/authx.git denied to iftenet.
from authx.
Related Issues (20)
- http://host/docs parameters are missing HOT 3
- Failed to import RedisCacheBackend and JWTBackend class from authx. Version 0.4.0 HOT 3
- Sorry, the documentation and examples are really bad, none of them can run through HOT 2
- Wrong username validation UserInRegister model HOT 1
- raise NotImplementedError in BaseDBBackend HOT 2
- MongoDBBackend has no attribute client HOT 1
- 📝 Followup with documentation - External Features
- 📝 Followup with documentation - Internal Feature HOT 1
- ✨ Start Integrating Pydantic V2
- 🔒️ Add Security Tests including Examples
- Add `mkdocstrings` to mkdocs configuration
- 📦 Migrate Redis session store & cache to authx-extra
- 📝 Generate API documentation & add docstrings
- ✏️ Include Typing in Linting CI
- 📝 Add Basic Usage documentation
- 📝 Include References for `authx-extra`
- ♻️ refactor error handling
- refresh_token_required is unuseful
- Scope Management
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from authx.