-
-
Notifications
You must be signed in to change notification settings - Fork 147
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
Feature update: add credentials for IMAP #702
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello & Welcome! :)
Thanks for taking the time to help improve ITFlow. We're excited to review your contributions - we'll review this PR as soon as we can!
Whilst you're waiting, please feel free to check out the forum.
Test these changes at: https://imapcredentials702.pr-review.itflow.org |
PR review link gives invalid credentials for demo@demo, tested against my local copy, no obvious issues, works as intended. |
database_updates.php
Outdated
//if (CURRENT_DATABASE_VERSION == '0.6.1') { | ||
if (CURRENT_DATABASE_VERSION == '0.6.1') { | ||
mysqli_query($mysqli, "ALTER TABLE `settings` ADD COLUMN `config_imap_username` VARCHAR(200) NULL DEFAULT NULL AFTER `config_imap_encryption`"); | ||
mysqli_query($mysqli, "ALTER TABLE `settings` ADD COLUMN `config_imap_password` VARCHAR(200) NULL DEFAULT NULL AFTER `config_imap_username`;"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-
Remove semi colon at end of query statement.
-
Add update statement for database version
Hey! Welcome to ITFlow, it's great to have you here. Firstly, thanks for the PR :) This was a feature we didn't add initially as we were going for MVP - it's great that you've taken the time to add it! I'm not sure what happened with the PR Review instance, the users table was blank. I re-copied it across and it seems to work now. I'll look into it, but am low on time at the moment. Just a couple of things to adjust, please - both in in database_updates.php:
Could you please adjust the above and we'll take another look? Appreciate your time. Cheers! |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Thanks for the reply! I'm not sure how this got missed - I swear I had this in my code prior to commit, so I have no idea how it disappeared. I remove the semicolon and re-added the version update statement. Thank you!
|
nice work @haymaker i'll reel this one in tomorrow |
@johnnyq I'll see about getting some time to possibly contribute more, as I'm permitted. I'll look around at the forums/issues and see what I might be able to pick up and work on, keeping as close to the spirit of the code as I can for consistency's sake. |
@haymaker That would be fantastic and were looking forward to working with you =] |
I had a use case requiring separate credentials for IMAP - created a simple update to add credentials support.
Decided to keep it simple rather than add extra logic for cross-credential checking. If both sets of credentials are the same, they can just be duplicated.
DB version bumped to 0.6.2.