标签: account

Github - 我切换了帐户,现在无法推送,因为我的用户名错误

所以我现在是 github 上的“jononomo”。然而,一年前,我还是“zononomo”。我暂时放弃了软件,并在此期间购买了一台新笔记本电脑。然后我回来并在 Github 上创建了一个名为“jononomo”的新帐户,现在我正在尝试在两台笔记本电脑之间同步我的点文件。我在我的新笔记本电脑上创建了一个 git 存储库,并将其推送到 github,可以在“jononomo”帐户下查看它。然后我转到我的旧笔记本电脑并克隆了这个存储库。一切都按预期进行。

然后我对旧笔记本电脑上的点文件进行了一些更改,现在我想将这些更改推送到 github,以便我可以将它们拉到我的新笔记本电脑上。问题是当我运行命令时:

git push origin master
Run Code Online (Sandbox Code Playgroud)

我收到错误消息:

ERROR: Permission to jononomo/.dotfiles.git denied to zononomo.
Run Code Online (Sandbox Code Playgroud)

我做的第一件事就是销毁~/.ssh/id_rsa和中的旧 SSH 密钥~/.ssh/id_rsa.pub。然后我生成了新的 SSH 密钥并将新的公钥添加到我的 jononomo github 帐户中。但这并没有解决问题。如果我运行命令:

ssh -T git@github.com
Run Code Online (Sandbox Code Playgroud)

我得到回应:

Hi zononomo! You've successfully authenticated, but GitHub does not provide shell access.
Run Code Online (Sandbox Code Playgroud)

接下来,我按照此处给出的解决方案进行操作:/sf/answers/570660401/ 此人建议我创建一个~/.ssh/config包含以下内容的文件:

Host github-jononomo
    User git
    Hostname github.com
    PreferredAuthentications publickey
    IdentityFile ~/.ssh/id_dsa.pub
Run Code Online (Sandbox Code Playgroud)

然后他建议我运行命令:

git remote set-url origin git@github-jononomo:jononomo/.dotfiles.git
Run Code Online (Sandbox Code Playgroud)

我尝试过,但它没有解决我的问题。我仍然收到消息:

ERROR: Permission to jononomo/.dotfiles.git denied to zononomo.
Run Code Online (Sandbox Code Playgroud)

顺便说一句,我的 …

git account github

5
推荐指数
1
解决办法
2149
查看次数

无法将用户添加到 Jenkins (Hudson)

我安装了独立的 Jenkins 安装程序。它可以在 localhost:8080 上使用。

但我不明白如何添加新帐户。我尝试了“配置 Jenkinks”->“启用安全性”等,来自 https://wiki.jenkins-ci.org/display/JENKINS/Standard+Security+Setup

但我仍然找不到应该在哪里输入新帐户的用户名和密码。

这是来自 wiki 的说明:

点击页面右上角的“登录”链接选择“创建帐户”

没有“创建帐户”按钮。我在任何地方都没有找到这个按钮!该表格位于何处?

account hudson jenkins

5
推荐指数
1
解决办法
1万
查看次数

如果没有帐户,AccountPicker.newChooseAccountIntent 不会显示选择器

我试图让用户使用 AccountPicker 从相同类型的自定义帐户列表中进行选择。

Intent pickAccountIntent = AccountPicker.newChooseAccountIntent(null, null, new String[]{"com.home.customapp"}, true, null, null, null, null);
        startActivityForResult(pickAccountIntent, 1);
Run Code Online (Sandbox Code Playgroud)

我有 2 个问题:

1. 根据API,如果alwaysPromptForAccount(第 4 个参数)设置为 true,则选择器应该始终可见。

但是,如果以前没有类型为“com.home.customapp”的帐户,则即使设置alwaysPromptForAccount为 true,也不会显示选择器活动

即使没有自定义帐户,如何使选择器始终可见?

2. 如何在订单上自定义添加帐户步骤以添加自定义帐户而不是谷歌帐户?

account android accountpicker

5
推荐指数
1
解决办法
3057
查看次数

Python - 使用 pywin32 从不同地址发送 Outlook 电子邮件

我有一个可以通过 pywin32 成功创建和发送 Outlook 电子邮件的工作脚本,但我想从不同的通用帐户发送电子邮件。如果有帮助,我可以访问这个通用帐户(和密码),甚至可以在 Outlook 中同时打开邮箱。

尝试类似的东西msg.From = "generic@email.com"返回AttributeError: Property 'CreateItem.From' can not be set.

有没有办法在不使用 SMTP 的情况下实现这一点?即使只是更改标题以反映通用帐户,因为 From 和 Reply-To 地址也可以使用。

编辑:使用 Win7 32bit、Outlook 2010、python 2.7 和 pywin32 模块创建以下代码:

from win32com.client import Dispatch
mailer = Dispatch("Outlook.Application")
msg = mailer.CreateItem(0)
msg.To = emailTo
msg.CC = emailCC
msg.Subject = emailSubject
msg.Body = emailBody
msg.Send()
Run Code Online (Sandbox Code Playgroud)

这部分工作得很好,但它通过我自己登录的用户发送电子邮件。我宁愿从通用帐户发送它,以便它看起来更正式,并且在那里而不是在我的邮箱中收到回复。

python email account pywin32 outlook-2010

5
推荐指数
1
解决办法
6029
查看次数

GitHub 用户名更改(使用 noreply 作为提交的电子邮件)

看到GitHub有改名的功能,丢掉对我来说好像问题不大。然而,我意识到我一直在使用我的旧名字@users.noreply.github.com 来提交和一切。因此,那封旧电子邮件将我之前的所有提交链接在一起。有没有办法解决这个问题?

我一直在想,也许我可以用我以前的名字创建一个帐户,让感兴趣的人通过该链接?在这种情况下,重新定位 repo 或类似的东西不太适用,因为我已经向其他存储库贡献了代码,所以我的旧提交仍然在那里未完成,没有名称或电子邮件来链接帐户。

我一直在想的另一种方法是把我的名字改回来,但我想这是最后的手段。这有点不幸,但我想由于 Git 的工作方式,它必须如此。(我现在已切换到我的 gmail 电子邮件,以防将来发生这种情况)

git account rename github

5
推荐指数
1
解决办法
1230
查看次数

更改 Woocommerce 中我的帐户页面上的标题

我已经看到了很多关于如何使用 WooCommerce 我的帐户仪表板重新排序/更改导航和页面的示例。但是我一辈子都无法弄清楚如何更改每个部分(我的帐户、订单、下载、地址等)的主要标题。

我已经搜索了模板,但没有任何乐趣。我尝试使用条件 php 注释来回显正确页面的标题。但它不起作用,因为我的帐户部分使用端点。我试过添加一个过滤器,但没有任何乐趣。有人知道我如何更改这些标题吗?

谢谢

php account wordpress title woocommerce

5
推荐指数
1
解决办法
5081
查看次数

WooCommerce 获取端点 url 未正确返回

我目前正在尝试在 WordPress AJAX 调用函数中使用此函数获取端点的链接:

wc_get_endpoint_url( 'einstellungen' )
Run Code Online (Sandbox Code Playgroud)

当我在 WooCommerce 页面中执行此操作时,我得到以下格式的正确链接:

www.page.com/account/einstellungen
Run Code Online (Sandbox Code Playgroud)

在我的 AJAX 函数中,URL 以这种方式返回:

www.page.com/einstellungen
Run Code Online (Sandbox Code Playgroud)

所以看来帐户子页面丢失了。有什么想法吗?

php account wordpress endpoint woocommerce

5
推荐指数
1
解决办法
5311
查看次数

Android SecurityException:uid xxxxx 无法显式添加帐户

我收到错误消息

java.lang.SecurityException: uid 10178 cannot explicitly add accounts of type: net.roughdesign.swms

即使是我可以创建的最基本的示例。它包括:

账户配置

strings.xml 中的帐户类型

<string name="accounts__account_type">net.roughdesign.swms</string>
Run Code Online (Sandbox Code Playgroud)

验证器.xml

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <account-authenticator xmlns:android="http://schemas.android.com/apk/res/android"
            android:accountType="@string/accounts__account_type"
            android:icon="@drawable/ic_add_black_24dp"
            android:smallIcon="@drawable/ic_add_black_24dp"
            android:label="@string/global__authenticator_account_label"
            />

</resources>
Run Code Online (Sandbox Code Playgroud)

SwmsAccountAuthenticator.kt

class SwmsAccountAuthenticator(val context: Context) : AbstractAccountAuthenticator(context) {

    override fun addAccount(
        response: AccountAuthenticatorResponse, accountType: String, authTokenType: String?,
        requiredFeatures: Array<out String>?, options: Bundle?
    ): Bundle? {
        return null
    }


    override fun confirmCredentials(response: AccountAuthenticatorResponse, account: Account, options: Bundle?)
            : Bundle? {
        return null
    }


    override fun editProperties(response: AccountAuthenticatorResponse?, accountType: String?): Bundle? { …
Run Code Online (Sandbox Code Playgroud)

account android kotlin

5
推荐指数
1
解决办法
4748
查看次数

Android newChooseAccountIntent 禁用新帐户选项

使用 newChooseAccountIntent 时是否可以禁用“添加帐户”选项。我只想让用户从设备上已有的帐户中进行选择。我不希望他们有添加帐户的选项。

我是否可以传递特定参数来禁用此功能,或者是否有其他我可以使用的意图?

提前致谢。

account android android-intent

5
推荐指数
0
解决办法
154
查看次数

WooCommerce:在结帐、我的帐户、管理订单和 WordPress 用户中添加出生日期计费字段

我尝试在 Woocommerce Checkout 表单中添加出生日期字段,然后将其保存为用户元。我可以使用下面的代码显示它,但我无法保存它以便在用户个人资料页面中查看它。

 add_filter( 'woocommerce_billing_fields', 'add_birth_date_billing_field', 20, 1 );
    function add_birth_date_billing_field($billing_fields) {
    
        $billing_fields['billing_birth_date'] = array(
            'type'        => 'date',
            'label'       => __('Birth date'),
            'class'       => array('form-row-wide'),
            'priority'    => 25,
            'required'    => true,
            'clear'       => true,
        );
        return $billing_fields;
    }
       
    
         add_action( 'woocommerce_checkout_update_customer', 'save_checkout_account_birthday_field', 10, 2 );
            function save_checkout_account_birthday_field( $customer, $data ){
                if ( isset($_POST['billing_birth_date']) && ! empty($_POST['billing_birth_date']) ) {
                     $customer->update_meta_data( 'billing_birth_date', sanitize_text_field($_POST['billing_birth_date']) );
                }
            }
Run Code Online (Sandbox Code Playgroud)

php account wordpress woocommerce woocommerce-checkout-fields

5
推荐指数
1
解决办法
2427
查看次数